Fix test failure under Arm architecture.

This commit is contained in:
Alexander Shaduri
2024-05-15 13:48:48 +04:00
parent e88a0b5ca3
commit 946f4b4339
+1 -1
View File
@@ -191,7 +191,7 @@ TEST_CASE("NumericStrings", "[hz][parser]")
REQUIRE(number_to_string_nolocale(5.F) == "5"); // float
REQUIRE(number_to_string_nolocale(1.33) == "1.33"); // double
REQUIRE(number_to_string_nolocale(2.123456789123456789123456789L).starts_with("2.1234567891234567") == true);
REQUIRE(number_to_string_nolocale(2.123456789123456789123456789L).starts_with("2.12345678912345") == true);
REQUIRE(number_to_string_nolocale(std::numeric_limits<double>::quiet_NaN()) == "nan");
REQUIRE(number_to_string_nolocale(std::numeric_limits<float>::signaling_NaN()) == "nan");