Update unit test meta

This commit is contained in:
Florian Albrechtskirchinger 2022-08-01 12:34:43 +02:00
parent 1465077636
commit b65a904574
No known key found for this signature in database
GPG Key ID: 19618CE9B2D4BE6D

View File

@ -28,10 +28,19 @@ TEST_CASE("version information")
{"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());
CHECK(j.contains("platform"));
CHECK(j.contains("compiler"));
CHECK(j.contains("config"));
const auto& j_cxx = j["compiler"];
CHECK(j_cxx.contains("family"));
CHECK(j_cxx.contains("version"));
CHECK(j_cxx.contains("c++"));
CHECK(j_cxx.contains("libc++"));
const auto& j_lib = j_cxx["libc++"];
CHECK(j_lib.contains("family"));
CHECK(j_lib.contains("version"));
}
}