summaryrefslogtreecommitdiff
path: root/tests/core/math/test_rect2.h
diff options
context:
space:
mode:
authorHendrik Brucker <hendrik.brucker@mail.de>2022-11-05 02:28:00 +0100
committerHendrik Brucker <hendrik.brucker@mail.de>2022-11-05 02:28:00 +0100
commitf906ff8f8980d4e75b7e21ae1598a64faa3b2efd (patch)
tree216e2957860044cd208551894a67d766f1fdd638 /tests/core/math/test_rect2.h
parentec521a405a89a1b80a9989c09dcc2f2e7763ddcf (diff)
[Tests] Replace Math::is_equal_approx with == and doctest::Approx
Diffstat (limited to 'tests/core/math/test_rect2.h')
-rw-r--r--tests/core/math/test_rect2.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/core/math/test_rect2.h b/tests/core/math/test_rect2.h
index d784875c1c..9984823331 100644
--- a/tests/core/math/test_rect2.h
+++ b/tests/core/math/test_rect2.h
@@ -102,16 +102,16 @@ TEST_CASE("[Rect2] Basic setters") {
TEST_CASE("[Rect2] Area getters") {
CHECK_MESSAGE(
- Math::is_equal_approx(Rect2(0, 100, 1280, 720).get_area(), 921'600),
+ Rect2(0, 100, 1280, 720).get_area() == doctest::Approx(921'600),
"get_area() should return the expected value.");
CHECK_MESSAGE(
- Math::is_equal_approx(Rect2(0, 100, -1280, -720).get_area(), 921'600),
+ Rect2(0, 100, -1280, -720).get_area() == doctest::Approx(921'600),
"get_area() should return the expected value.");
CHECK_MESSAGE(
- Math::is_equal_approx(Rect2(0, 100, 1280, -720).get_area(), -921'600),
+ Rect2(0, 100, 1280, -720).get_area() == doctest::Approx(-921'600),
"get_area() should return the expected value.");
CHECK_MESSAGE(
- Math::is_equal_approx(Rect2(0, 100, -1280, 720).get_area(), -921'600),
+ Rect2(0, 100, -1280, 720).get_area() == doctest::Approx(-921'600),
"get_area() should return the expected value.");
CHECK_MESSAGE(
Math::is_zero_approx(Rect2(0, 100, 0, 720).get_area()),