1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-29 23:01:16 +03:00

addressed static analysis warnings #94

This commit is contained in:
Niels
2015-06-28 14:02:47 +02:00
parent c58c5aa8c9
commit 3f6b10733b
3 changed files with 54 additions and 56 deletions

View File

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