mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Fix FormatLongDouble test on PowerPC (#180)
This commit is contained in:
parent
958299dd7f
commit
948317b6dd
@ -1308,8 +1308,7 @@ TEST(FormatterTest, FormatLongDouble) {
|
|||||||
char buffer[BUFFER_SIZE];
|
char buffer[BUFFER_SIZE];
|
||||||
safe_sprintf(buffer, "%Le", 392.65l);
|
safe_sprintf(buffer, "%Le", 392.65l);
|
||||||
EXPECT_EQ(buffer, format("{0:e}", 392.65l));
|
EXPECT_EQ(buffer, format("{0:e}", 392.65l));
|
||||||
safe_sprintf(buffer, "%LE", 392.65l);
|
EXPECT_EQ("+0000392.6", format("{0:+010.4g}", 392.64l));
|
||||||
EXPECT_EQ("+0000392.6", format("{0:+010.4g}", 392.65l));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(FormatterTest, FormatChar) {
|
TEST(FormatterTest, FormatChar) {
|
||||||
|
Loading…
Reference in New Issue
Block a user