mirror of
https://github.com/nlohmann/json.git
synced 2026-02-18 02:32:24 +00:00
🚚 rename binary_array() to binary()
This commit is contained in:
@@ -262,7 +262,7 @@ TEST_CASE("object inspection")
|
||||
// inside the dump() function
|
||||
CHECK(j.dump(1024).size() == 15472);
|
||||
|
||||
const auto binary = json::binary_array({1, 2, 3}, 128);
|
||||
const auto binary = json::binary({1, 2, 3}, 128);
|
||||
CHECK(binary.dump(1024).size() == 2086);
|
||||
}
|
||||
|
||||
@@ -472,7 +472,7 @@ TEST_CASE("object inspection")
|
||||
|
||||
SECTION("binary")
|
||||
{
|
||||
json j = json::binary_array({});
|
||||
json j = json::binary({});
|
||||
json::value_t t = j;
|
||||
CHECK(t == j.type());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user