Skip to content

Commit

Permalink
Merge pull request #860 from cppalliance/zero_charconv
Browse files Browse the repository at this point in the history
Test fixed zero with precision argument
  • Loading branch information
mborland authored Feb 17, 2025
2 parents da32132 + dc261a8 commit 45e2e1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_to_chars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,8 @@ void zero_test()
test_value(val * T{dist(rng)}, "0.000000000", chars_format::fixed, 9);
test_value(val * T{dist(rng)}, "0.0000000000", chars_format::fixed, 10);
test_value(val * T{dist(rng)}, "0.00000000000000000000000000000000000000000000000000", chars_format::fixed, 50);

test_value(val * T{dist(rng)}, "0", chars_format::fixed);
}

// See: https://github.com/cppalliance/decimal/issues/434
Expand Down

0 comments on commit 45e2e1d

Please sign in to comment.