[Tests] Replace Math::is_equal_approx with == and doctest::Approx

This commit is contained in:
Hendrik Brucker
2022-11-05 02:28:00 +01:00
parent ec521a405a
commit f906ff8f89
17 changed files with 168 additions and 168 deletions
+1 -1
View File
@@ -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\"");