mirror of
https://github.com/nlohmann/json.git
synced 2026-10-08 15:37:13 +00:00
fixed test case
This commit is contained in:
1 parent
6268287940
commit
1dee40a969
3 files changed
+13
-37
No files matched your search
+1
-1
@@ -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