mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Test example.
This commit is contained in:
parent
c22c26ed3d
commit
7f622c118d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user