mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Workeround broken sprintf in MSVC
This commit is contained in:
@ -1416,7 +1416,9 @@ TEST(FormatterTest, FormatDouble) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST(FormatterTest, FormatDoubleBigPrecision) {
|
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) {
|
TEST(FormatterTest, FormatNaN) {
|
||||||
|
Reference in New Issue
Block a user