From db306cfb22ac83c9c7f2a35760d20a369a685c17 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 12 Dec 2012 11:32:13 -0800 Subject: [PATCH] Fix long double tests. --- format_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/format_test.cc b/format_test.cc index 93bb3e7f..e34cc5d1 100644 --- a/format_test.cc +++ b/format_test.cc @@ -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)); char buffer[256]; - sprintf(buffer, "%Le", 392.65); - EXPECT_EQ(buffer, str(Format("{0:e}") << 392.65)); - sprintf(buffer, "%LE", 392.65); + sprintf(buffer, "%Le", 392.65l); + EXPECT_EQ(buffer, str(Format("{0:e}") << 392.65l)); + sprintf(buffer, "%LE", 392.65l); EXPECT_EQ("+0000392.6", str(Format("{0:+010.4g}") << 392.65l)); }