Add a test.

This commit is contained in:
Victor Zverovich 2014-05-14 06:45:39 -07:00
parent cb389f9a09
commit bb93cf12a7

View File

@ -1808,6 +1808,9 @@ TEST(FormatterTest, Examples) {
"unknown format code 'd' for string");
EXPECT_EQ(L"Cyrillic letter \x42e",
str(Format(L"Cyrillic letter {}", L'\x42e')));
EXPECT_WRITE(stdout,
fmt::Print("{}", std::numeric_limits<double>::infinity()), "inf");
#endif
}