mirror of
https://github.com/nlohmann/json.git
synced 2026-02-10 12:02:28 +00:00
🚚 rename binary_array() to binary()
This commit is contained in:
@@ -121,7 +121,7 @@ TEST_CASE("constructors")
|
||||
auto t = json::value_t::binary;
|
||||
json j(t);
|
||||
CHECK(j.type() == t);
|
||||
CHECK(j == json::binary_array({}));
|
||||
CHECK(j == json::binary({}));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1482,12 +1482,12 @@ TEST_CASE("constructors")
|
||||
SECTION("binary")
|
||||
{
|
||||
{
|
||||
json j = json::binary_array({1, 2, 3});
|
||||
json j = json::binary({1, 2, 3});
|
||||
json j_new(j.begin(), j.end());
|
||||
CHECK((j == j_new));
|
||||
}
|
||||
{
|
||||
json j = json::binary_array({1, 2, 3});
|
||||
json j = json::binary({1, 2, 3});
|
||||
json j_new(j.cbegin(), j.cend());
|
||||
CHECK((j == j_new));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user