mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-05 02:27:45 +00:00
Fix long double tests.
This commit is contained in:
parent
414caae4d3
commit
db306cfb22
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user