Fix tests.

This commit is contained in:
Victor Zverovich
2014-06-10 07:36:23 -07:00
parent 03776dd988
commit a2828412b6
2 changed files with 6 additions and 2 deletions
+2
View File
@@ -1215,7 +1215,9 @@ TEST(FormatterTest, FormatDouble) {
SPrintf(buffer, "%E", 392.65);
EXPECT_EQ(buffer, str(Format("{0:E}") << 392.65));
EXPECT_EQ("+0000392.6", str(Format("{0:+010.4g}") << 392.65));
SPrintf(buffer, "%a", -42);
EXPECT_EQ("-0x1.5p+5", str(Format("{:a}") << -42.0));
SPrintf(buffer, "%A", -42);
EXPECT_EQ("-0X1.5P+5", str(Format("{:A}") << -42.0));
}