mirror of
https://github.com/fmtlib/fmt.git
synced 2025-03-01 01:13:32 +00:00
Fix build.
This commit is contained in:
parent
75e078748a
commit
c164cb6ecd
@ -1569,11 +1569,14 @@ TEST(FormatterTest, Examples) {
|
|||||||
EXPECT_THROW_MSG(
|
EXPECT_THROW_MSG(
|
||||||
format("The answer is {:d}", "forty-two"), FormatError,
|
format("The answer is {:d}", "forty-two"), FormatError,
|
||||||
"unknown format code 'd' for string");
|
"unknown format code 'd' for string");
|
||||||
|
|
||||||
|
#if FMT_USE_VARIADIC_TEMPLATES && FMT_USE_RVALUE_REFERENCES
|
||||||
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,
|
EXPECT_WRITE(stdout,
|
||||||
fmt::Print("{}", std::numeric_limits<double>::infinity()), "inf");
|
fmt::Print("{}", std::numeric_limits<double>::infinity()), "inf");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(FormatIntTest, Data) {
|
TEST(FormatIntTest, Data) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user