mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-12 15:39:09 +00:00
Conditionally compile part of a test that uses C++11.
This commit is contained in:
parent
7f622c118d
commit
a07b51f7df
@ -1433,10 +1433,12 @@ TEST(FormatterTest, Examples) {
|
|||||||
|
|
||||||
std::string path = "somefile";
|
std::string path = "somefile";
|
||||||
ReportError("File not found: {0}") << path;
|
ReportError("File not found: {0}") << path;
|
||||||
|
|
||||||
|
#ifdef FMT_USE_INITIALIZER_LIST
|
||||||
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");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(FormatIntTest, Data) {
|
TEST(FormatIntTest, Data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user