mirror of
https://github.com/nlohmann/json.git
synced 2026-03-22 08:52:48 +00:00
🚨 removed compiler warnings
This commit is contained in:
@@ -1191,7 +1191,7 @@ TEST_CASE("nst's JSONTestSuite (2)")
|
||||
{
|
||||
CAPTURE(filename);
|
||||
std::ifstream f(filename);
|
||||
CHECK_THROWS_AS(json::parse(f), json::parse_error);
|
||||
CHECK_THROWS_AS(json::parse(f), json::parse_error&);
|
||||
std::ifstream f2(filename);
|
||||
CHECK(not json::accept(f2));
|
||||
}
|
||||
@@ -1306,7 +1306,7 @@ TEST_CASE("nst's JSONTestSuite (2)")
|
||||
{
|
||||
CAPTURE(filename);
|
||||
std::ifstream f(filename);
|
||||
CHECK_THROWS_AS(json::parse(f), json::exception); // could be parse_error or out_of_range
|
||||
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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user