mirror of
https://github.com/nlohmann/json.git
synced 2026-02-11 00:12:30 +00:00
✅ add tests for binary type
This commit is contained in:
@@ -115,6 +115,14 @@ TEST_CASE("constructors")
|
||||
CHECK(j.type() == t);
|
||||
CHECK(j == 0.0);
|
||||
}
|
||||
|
||||
SECTION("binary")
|
||||
{
|
||||
auto t = json::value_t::binary;
|
||||
json j(t);
|
||||
CHECK(j.type() == t);
|
||||
CHECK(j == json::binary_array({}));
|
||||
}
|
||||
}
|
||||
|
||||
SECTION("create a null object (implicitly)")
|
||||
|
||||
Reference in New Issue
Block a user