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

@ -405,7 +405,7 @@ TEST_CASE("RFC 7159 examples")
SECTION("13 Examples")
{
{
CHECK_NOTHROW(json(R"(
auto json_contents = R"(
{
"Image": {
"Width": 800,
@ -420,11 +420,13 @@ TEST_CASE("RFC 7159 examples")
"IDs": [116, 943, 234, 38793]
}
}
)"));
)";
CHECK_NOTHROW(json(json_contents));
}
{
CHECK_NOTHROW(json(R"(
auto json_contents = R"(
[
{
"precision": "zip",
@ -446,7 +448,8 @@ TEST_CASE("RFC 7159 examples")
"Zip": "94085",
"Country": "US"
}
])"));
])";
CHECK_NOTHROW(json(json_contents));
}
CHECK(json::parse("\"Hello world!\"") == json("Hello world!"));