Skip to content

Commit

Permalink
Regards #156: Fixed the failing test definition (but the bug still pe…
Browse files Browse the repository at this point in the history
…rsists)
  • Loading branch information
eyalroz committed Jul 25, 2024
1 parent 4ac49e1 commit 8aea399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_suite_main_testcases.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ PRINTF_TEST_CASE(floating_point_specifiers_precision_and_flags)
PRINTING_CHECK("-4e+04", ==, sprintf_, buffer, "%.1g", -40661.5);
PRINTING_CHECK("-4.e+04", ==, sprintf_, buffer, "%#.1g", -40661.5);
PRINTING_CHECK("100.", ==, sprintf_, buffer, "%#.3g", 99.998580932617187500);
PRINTING_CHECK("1.e01", ==, sprintf_, buffer, "%# 01.1g", 9.8);
PRINTING_CHECK(" 1.e+01", ==, sprintf_, buffer, "%# 01.1g", 9.8);
// Note: The following value is _barely_ normal; make the mantissa 1.1 and it loses its normality.
PRINTING_CHECK("1.2345678901e-308", ==, sprintf_, buffer, "%.10e", 1.2345678901e-308);
// Rounding-focused checks
Expand Down

0 comments on commit 8aea399

Please sign in to comment.