add tests for binary type

This commit is contained in:
Niels Lohmann
2020-05-09 13:46:24 +02:00
parent f0c6ab4d3b
commit 3fa94f0755
3 changed files with 39 additions and 0 deletions

View File

@@ -91,6 +91,13 @@ TEST_CASE("other constructors and destructor")
json k(j);
CHECK(j == k);
}
SECTION("binary")
{
json j = json::binary_array({1, 2, 3});
json k(j);
CHECK(j == k);
}
}
SECTION("move constructor")
@@ -167,6 +174,14 @@ TEST_CASE("other constructors and destructor")
k = j;
CHECK(j == k);
}
SECTION("binary")
{
json j = json::binary_array({1, 2, 3});
json k;
k = j;
CHECK(j == k);
}
}
SECTION("destructor")