Adding 4.8 test to travis

This commit is contained in:
Henry Fredrick Schreiner 2018-09-25 18:15:29 +02:00
parent 99b7c7c8ef
commit 7a37ba0c02
9 changed files with 51 additions and 26 deletions

View file

@ -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;