mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
Fix test.
This commit is contained in:
parent
07095e85b2
commit
e1d4690566
@ -1216,9 +1216,9 @@ TEST(FormatterTest, FormatDouble) {
|
|||||||
EXPECT_EQ(buffer, str(Format("{0:E}") << 392.65));
|
EXPECT_EQ(buffer, str(Format("{0:E}") << 392.65));
|
||||||
EXPECT_EQ("+0000392.6", str(Format("{0:+010.4g}") << 392.65));
|
EXPECT_EQ("+0000392.6", str(Format("{0:+010.4g}") << 392.65));
|
||||||
SPrintf(buffer, "%a", -42);
|
SPrintf(buffer, "%a", -42);
|
||||||
EXPECT_EQ("-0x1.5p+5", str(Format("{:a}") << -42.0));
|
EXPECT_EQ(buffer, str(Format("{:a}") << -42.0));
|
||||||
SPrintf(buffer, "%A", -42);
|
SPrintf(buffer, "%A", -42);
|
||||||
EXPECT_EQ("-0X1.5P+5", str(Format("{:A}") << -42.0));
|
EXPECT_EQ(buffer, str(Format("{:A}") << -42.0));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(FormatterTest, FormatNaN) {
|
TEST(FormatterTest, FormatNaN) {
|
||||||
|
Loading…
Reference in New Issue
Block a user