more tests for meta() call

parent d1b30250
...@@ -33,10 +33,14 @@ using nlohmann::json; ...@@ -33,10 +33,14 @@ using nlohmann::json;
TEST_CASE("version information") TEST_CASE("version information")
{ {
SECTION("version()") SECTION("meta()")
{ {
CHECK(json::meta()["name"] == "JSON for Modern C++"); json j = json::meta();
CHECK(json::meta()["version"] == json(
CHECK(j["name"] == "JSON for Modern C++");
CHECK(j["copyright"] == "(C) 2013-2017 Niels Lohmann");
CHECK(j["url"] == "https://github.com/nlohmann/json");
CHECK(j["version"] == json(
{ {
{"string", "2.1.1"}, {"string", "2.1.1"},
{"major", 2}, {"major", 2},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment