♻️ move wrapped binary type to separate file

This commit is contained in:
Niels Lohmann
2020-05-15 14:12:32 +02:00
parent bcf4f3ce9a
commit daf2d296dd
8 changed files with 192 additions and 154 deletions

View File

@@ -481,6 +481,23 @@ TEST_CASE("constructors")
}
}
SECTION("create a binary (explicit)")
{
SECTION("empty binary")
{
json::internal_binary_t b{};
json j(b);
CHECK(j.type() == json::value_t::binary);
}
SECTION("filled binary")
{
json::internal_binary_t b({1, 2, 3});
json j(b);
CHECK(j.type() == json::value_t::binary);
}
}
SECTION("create an integer number (explicit)")
{
SECTION("uninitialized value")