Skip to content

Commit

Permalink
πŸ› Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Oct 9, 2023
1 parent dbefa60 commit abe9d45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ TEST_CASE("Interpolation modes")
}};

gradient.interpolation_mode() = ImGG::Interpolation::Linear;
CHECK(doctest::Approx(gradient.at(ImGG::RelativePosition{0.25f}).x) == 0.232516f);
CHECK(doctest::Approx(gradient.at(ImGG::RelativePosition{0.75f}).x) == 0.723905f);
CHECK(doctest::Approx(gradient.at(ImGG::RelativePosition{0.25f}).x) == 0.131499f);
CHECK(doctest::Approx(gradient.at(ImGG::RelativePosition{0.75f}).x) == 0.681341f);
gradient.interpolation_mode() = ImGG::Interpolation::Constant;
CHECK(doctest::Approx(gradient.at(ImGG::RelativePosition{0.25f}).x) == 1.f);
CHECK(doctest::Approx(gradient.at(ImGG::RelativePosition{0.75f}).x) == 1.f);
Expand Down

0 comments on commit abe9d45

Please sign in to comment.