Fix long double tests.

This commit is contained in:
Victor Zverovich 2012-12-12 11:32:13 -08:00
parent 414caae4d3
commit db306cfb22

View File

@ -497,9 +497,9 @@ TEST(FormatterTest, FormatLongDouble) {
EXPECT_EQ("392.650000", str(Format("{0:f}") << 392.65l)); EXPECT_EQ("392.650000", str(Format("{0:f}") << 392.65l));
EXPECT_EQ("392.650000", str(Format("{0:F}") << 392.65l)); EXPECT_EQ("392.650000", str(Format("{0:F}") << 392.65l));
char buffer[256]; char buffer[256];
sprintf(buffer, "%Le", 392.65); sprintf(buffer, "%Le", 392.65l);
EXPECT_EQ(buffer, str(Format("{0:e}") << 392.65)); EXPECT_EQ(buffer, str(Format("{0:e}") << 392.65l));
sprintf(buffer, "%LE", 392.65); sprintf(buffer, "%LE", 392.65l);
EXPECT_EQ("+0000392.6", str(Format("{0:+010.4g}") << 392.65l)); EXPECT_EQ("+0000392.6", str(Format("{0:+010.4g}") << 392.65l));
} }