From bf4d744d1a31b83eaaf7ae8ffa6778400d8d3340 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sun, 26 Feb 2017 14:34:58 +0100 Subject: [PATCH] :white_check_mark: more tests for meta() call --- test/src/unit-meta.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/src/unit-meta.cpp b/test/src/unit-meta.cpp index 8c614a6c1..2e4cce067 100644 --- a/test/src/unit-meta.cpp +++ b/test/src/unit-meta.cpp @@ -33,10 +33,14 @@ using nlohmann::json; TEST_CASE("version information") { - SECTION("version()") + SECTION("meta()") { - CHECK(json::meta()["name"] == "JSON for Modern C++"); - CHECK(json::meta()["version"] == json( + json j = json::meta(); + + 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"}, {"major", 2},