mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-02 12:14:43 +02:00
Fix test.
This commit is contained in:
@@ -1556,10 +1556,12 @@ TEST(FormatterTest, FormatExamples) {
|
|||||||
EXPECT_EQ("0123456789", s);
|
EXPECT_EQ("0123456789", s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EXPECT_THROW({
|
||||||
const char *filename = "nonexistent";
|
const char *filename = "nonexistent";
|
||||||
FILE *f = fopen(filename, "r");
|
FILE *f = fopen(filename, "r");
|
||||||
if (!f)
|
if (!f)
|
||||||
fmt::ThrowSystemError(errno, "Cannot open file '{}'") << filename;
|
fmt::ThrowSystemError(errno, "Cannot open file '{}'") << filename;
|
||||||
|
}, fmt::SystemError);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(FormatterTest, StrNamespace) {
|
TEST(FormatterTest, StrNamespace) {
|
||||||
|
Reference in New Issue
Block a user