mirror of
https://github.com/nlohmann/json.git
synced 2026-02-17 14:22:14 +00:00
🔨 added user-defined exceptions 301
This commit is contained in:
@@ -943,9 +943,9 @@ TEST_CASE("constructors")
|
||||
SECTION("object with error")
|
||||
{
|
||||
CHECK_THROWS_AS(json::object({ {"one", 1}, {"two", 1u}, {"three", 2.2}, {"four", false}, 13 }),
|
||||
std::logic_error);
|
||||
json::type_error);
|
||||
CHECK_THROWS_WITH(json::object({ {"one", 1}, {"two", 1u}, {"three", 2.2}, {"four", false}, 13 }),
|
||||
"cannot create object from initializer list");
|
||||
"[json.exception.type_error.301] cannot create object from initializer list");
|
||||
}
|
||||
|
||||
SECTION("empty array")
|
||||
|
||||
Reference in New Issue
Block a user