mirror of
https://github.com/nlohmann/json.git
synced 2026-02-23 03:46:26 +00:00
fixed test case
This commit is contained in:
@@ -12368,7 +12368,7 @@ TEST_CASE("JSON pointers")
|
||||
// error for conflicting values
|
||||
json j_error = {{"", 42}, {"/foo", 17}};
|
||||
CHECK_THROWS_AS(j_error.unflatten(), std::domain_error);
|
||||
CHECK_THROWS_WITH(j_error.unflatten(), "unresolved reference token 'foo'");
|
||||
CHECK_THROWS_WITH(j_error.unflatten(), "invalid value to unflatten");
|
||||
|
||||
// explicit roundtrip check
|
||||
CHECK(j.flatten().unflatten() == j);
|
||||
|
||||
Reference in New Issue
Block a user