mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-26 03:35:22 +00:00
Add example.
This commit is contained in:
parent
03f68857e2
commit
656ca25177
@ -1438,6 +1438,7 @@ 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");
|
||||||
|
EXPECT_EQ(L"Cyrillic letter ю", Format(L"Cyrillic letter {}", L'ю'));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user