From e1d469056651244b895c546804fc3c40d9023fac Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 10 Jun 2014 08:15:38 -0700 Subject: [PATCH] Fix test. --- test/format-test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/format-test.cc b/test/format-test.cc index 36798b39..a98cbdd4 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -1216,9 +1216,9 @@ TEST(FormatterTest, FormatDouble) { 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)); + EXPECT_EQ(buffer, str(Format("{:a}") << -42.0)); 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) {