mirror of
https://github.com/nlohmann/json.git
synced 2026-02-20 18:36:24 +00:00
✅ add tests for binary type
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user