mirror of
https://github.com/nlohmann/json.git
synced 2026-02-21 19:06:27 +00:00
Adding 4.8 test to travis
This commit is contained in:
@@ -63,7 +63,7 @@ TEST_CASE("JSON patch")
|
||||
// is not an error, because "a" exists, and "b" will be added to
|
||||
// its value.
|
||||
CHECK_NOTHROW(doc1.patch(patch));
|
||||
CHECK(doc1.patch(patch) == R"(
|
||||
auto doc1_ans = R"(
|
||||
{
|
||||
"a": {
|
||||
"foo": 1,
|
||||
@@ -72,7 +72,8 @@ TEST_CASE("JSON patch")
|
||||
}
|
||||
}
|
||||
}
|
||||
)"_json);
|
||||
)"_json;
|
||||
CHECK(doc1.patch(patch) == doc1_ans);
|
||||
|
||||
// It is an error in this document:
|
||||
json doc2 = R"({ "q": { "bar": 2 } })"_json;
|
||||
|
||||
Reference in New Issue
Block a user