1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-25 13:41:56 +03:00

improved test coverage

This commit is contained in:
Niels Lohmann
2017-10-22 08:53:27 +02:00
parent b27a142ec0
commit 24b6e028a9
6 changed files with 204 additions and 72 deletions

View File

@ -47,5 +47,10 @@ TEST_CASE("version information")
{"minor", 1},
{"patch", 1}
}));
CHECK(j.find("platform") != j.end());
CHECK(j.at("compiler").find("family") != j.at("compiler").end());
CHECK(j.at("compiler").find("version") != j.at("compiler").end());
CHECK(j.at("compiler").find("c++") != j.at("compiler").end());
}
}