Commit db306cfb authored by Victor Zverovich's avatar Victor Zverovich

Fix long double tests.

parent 414caae4
...@@ -497,9 +497,9 @@ TEST(FormatterTest, FormatLongDouble) { ...@@ -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));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment