diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-06 15:58:00 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-06 15:58:00 +0100 |
commit | 44a0b86f9332070c2dda395c4134f8a19ce14cf7 (patch) | |
tree | f22c8c4884ec032151708a923a813580499b5157 /tests/core/io/test_json.h | |
parent | e95dec0c64a529ec59d485278b9a600fcb85f608 (diff) | |
parent | f906ff8f8980d4e75b7e21ae1598a64faa3b2efd (diff) |
Merge pull request #68275 from Geometror/doctest-approx
[Tests] Replace Math::is_equal_approx with == and doctest::Approx
Diffstat (limited to 'tests/core/io/test_json.h')
-rw-r--r-- | tests/core/io/test_json.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core/io/test_json.h b/tests/core/io/test_json.h index 478cf1766e..af450da3b8 100644 --- a/tests/core/io/test_json.h +++ b/tests/core/io/test_json.h @@ -83,7 +83,7 @@ TEST_CASE("[JSON] Parsing single data types") { json.get_error_line() == 0, "Parsing a floating-point number as JSON should parse successfully."); CHECK_MESSAGE( - Math::is_equal_approx(double(json.get_data()), 0.123456), + double(json.get_data()) == doctest::Approx(0.123456), "Parsing a floating-point number as JSON should return the expected value."); json.parse("\"hello\""); |