mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-29 18:27:40 +02:00
Test example.
This commit is contained in:
@ -1433,6 +1433,10 @@ TEST(FormatterTest, Examples) {
|
||||
|
||||
std::string path = "somefile";
|
||||
ReportError("File not found: {0}") << path;
|
||||
|
||||
EXPECT_THROW_MSG(
|
||||
Format("The answer is {:d}", "forty-two"), FormatError,
|
||||
"unknown format code 'd' for string");
|
||||
}
|
||||
|
||||
TEST(FormatIntTest, Data) {
|
||||
|
Reference in New Issue
Block a user