diff options
author | Victor Zverovich <victor.zverovich@gmail.com> | 2019-10-20 07:55:05 -0700 |
---|---|---|
committer | Victor Zverovich <victor.zverovich@gmail.com> | 2019-10-20 07:55:05 -0700 |
commit | e2ea94067385a9252ecef6d42cdf9a7408a51326 (patch) | |
tree | 2b230c116980d6d31c6d5b8a0424b24b36fae2cf /test | |
parent | 2bc5585ff0f474550c6c22f18a60e72b32717472 (diff) | |
download | fmtlib-e2ea94067385a9252ecef6d42cdf9a7408a51326.tar.gz |
Handle assymetric boundaries
Diffstat (limited to 'test')
-rw-r--r-- | test/grisu-test.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/grisu-test.cc b/test/grisu-test.cc index 02b9e6fb..3fc670cd 100644 --- a/test/grisu-test.cc +++ b/test/grisu-test.cc @@ -69,4 +69,7 @@ TEST(GrisuTest, Fallback) { EXPECT_EQ("2.2506787569811123e-253", fmt::format("{}", 2.2506787569811123e-253)); EXPECT_EQ("1103618912042992.8", fmt::format("{}", 1103618912042992.8)); + // pow(2, -25) - assymetric boundaries: + EXPECT_EQ("2.9802322387695312e-08", + fmt::format("{}", 2.9802322387695312e-08)); } |