mirror of
https://github.com/nlohmann/json.git
synced 2026-03-22 08:52:48 +00:00
🎨 replace alternative operators (and, not, or)
This commit is contained in:
@@ -1235,7 +1235,7 @@ TEST_CASE("nst's JSONTestSuite (2)")
|
||||
json _;
|
||||
CHECK_THROWS_AS(_ = json::parse(f), json::parse_error&);
|
||||
std::ifstream f2(filename);
|
||||
CHECK(not json::accept(f2));
|
||||
CHECK(!json::accept(f2));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1250,7 +1250,7 @@ TEST_CASE("nst's JSONTestSuite (2)")
|
||||
{
|
||||
CAPTURE(filename)
|
||||
std::ifstream f(filename);
|
||||
CHECK(not json::accept(f));
|
||||
CHECK(!json::accept(f));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1352,7 +1352,7 @@ TEST_CASE("nst's JSONTestSuite (2)")
|
||||
json _;
|
||||
CHECK_THROWS_AS(_ = json::parse(f), json::exception&); // could be parse_error or out_of_range
|
||||
std::ifstream f2(filename);
|
||||
CHECK(not json::accept(f2));
|
||||
CHECK(!json::accept(f2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user