Fix build.

This commit is contained in:
Victor Zverovich 2014-06-28 14:53:16 -07:00
parent 75e078748a
commit c164cb6ecd

View File

@ -1569,11 +1569,14 @@ TEST(FormatterTest, Examples) {
EXPECT_THROW_MSG(
format("The answer is {:d}", "forty-two"), FormatError,
"unknown format code 'd' for string");
#if FMT_USE_VARIADIC_TEMPLATES && FMT_USE_RVALUE_REFERENCES
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
}
TEST(FormatIntTest, Data) {