Skip to content

Commit

Permalink
Fix test failure under Arm architecture.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashaduri committed May 15, 2024
1 parent e88a0b5 commit 946f4b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hz/tests/test_string_num.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 946f4b4

Please sign in to comment.