mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Add a test.
This commit is contained in:
@ -1808,6 +1808,9 @@ TEST(FormatterTest, Examples) {
|
|||||||
"unknown format code 'd' for string");
|
"unknown format code 'd' for string");
|
||||||
EXPECT_EQ(L"Cyrillic letter \x42e",
|
EXPECT_EQ(L"Cyrillic letter \x42e",
|
||||||
str(Format(L"Cyrillic letter {}", L'\x42e')));
|
str(Format(L"Cyrillic letter {}", L'\x42e')));
|
||||||
|
|
||||||
|
EXPECT_WRITE(stdout,
|
||||||
|
fmt::Print("{}", std::numeric_limits<double>::infinity()), "inf");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user