🚚 rename binary_array() to binary()

This commit is contained in:
Niels Lohmann 2020-05-19 13:30:22 +02:00
parent 86b053e916
commit 21b1680ea1
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
16 changed files with 85 additions and 61 deletions

View file

@ -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());
}