Commit 846c644e authored by Victor Zverovich's avatar Victor Zverovich

Workeround broken sprintf in MSVC

parent 13d472bd
......@@ -1416,7 +1416,9 @@ TEST(FormatterTest, FormatDouble) {
}
TEST(FormatterTest, FormatDoubleBigPrecision) {
EXPECT_EQ(format("0.{:0<1000}", ""), format("{:.1000f}", 0.0));
// sprintf with big precision is broken in MSVC2013, so only test on Grisu.
if (FMT_USE_GRISU)
EXPECT_EQ(format("0.{:0<1000}", ""), format("{:.1000f}", 0.0));
}
TEST(FormatterTest, FormatNaN) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment