fixed test case
This commit is contained in:
parent
6268287940
commit
1dee40a969
3 changed files with 13 additions and 37 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue