✅ more tests for meta() call
This commit is contained in:
parent
d1b30250d6
commit
bf4d744d1a
1 changed files with 7 additions and 3 deletions
|
@ -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},
|
||||||
|
|
Loading…
Reference in a new issue