mirror of
https://github.com/nlohmann/json.git
synced 2026-02-09 11:42:51 +00:00
🚚 rename binary_array() to binary()
This commit is contained in:
@@ -1132,7 +1132,7 @@ TEST_CASE("MessagePack")
|
||||
|
||||
// create JSON value with byte array containing of N * 'x'
|
||||
const auto s = std::vector<uint8_t>(N, 'x');
|
||||
json j = json::binary_array(s);
|
||||
json j = json::binary(s);
|
||||
std::uint8_t subtype = 42;
|
||||
j.get_binary().set_subtype(subtype);
|
||||
|
||||
@@ -1207,7 +1207,7 @@ TEST_CASE("MessagePack")
|
||||
|
||||
// create JSON value with string containing of N * 'x'
|
||||
const auto s = std::vector<uint8_t>(N, 'x');
|
||||
json j = json::binary_array(s);
|
||||
json j = json::binary(s);
|
||||
std::uint8_t subtype = 42;
|
||||
j.get_binary().set_subtype(subtype);
|
||||
|
||||
@@ -1243,7 +1243,7 @@ TEST_CASE("MessagePack")
|
||||
|
||||
// create JSON value with string containing of N * 'x'
|
||||
const auto s = std::vector<uint8_t>(N, 'x');
|
||||
json j = json::binary_array(s);
|
||||
json j = json::binary(s);
|
||||
std::uint8_t subtype = 42;
|
||||
j.get_binary().set_subtype(subtype);
|
||||
|
||||
@@ -1281,7 +1281,7 @@ TEST_CASE("MessagePack")
|
||||
|
||||
// create JSON value with byte array containing of N * 'x'
|
||||
const auto s = std::vector<uint8_t>(N, 'x');
|
||||
json j = json::binary_array(s);
|
||||
json j = json::binary(s);
|
||||
|
||||
// create expected byte vector
|
||||
std::vector<std::uint8_t> expected;
|
||||
@@ -1319,7 +1319,7 @@ TEST_CASE("MessagePack")
|
||||
|
||||
// create JSON value with string containing of N * 'x'
|
||||
const auto s = std::vector<std::uint8_t>(N, 'x');
|
||||
json j = json::binary_array(s);
|
||||
json j = json::binary(s);
|
||||
|
||||
// create expected byte vector (hack: create string first)
|
||||
std::vector<std::uint8_t> expected(N, 'x');
|
||||
@@ -1352,7 +1352,7 @@ TEST_CASE("MessagePack")
|
||||
|
||||
// create JSON value with string containing of N * 'x'
|
||||
const auto s = std::vector<std::uint8_t>(N, 'x');
|
||||
json j = json::binary_array(s);
|
||||
json j = json::binary(s);
|
||||
|
||||
// create expected byte vector (hack: create string first)
|
||||
std::vector<uint8_t> expected(N, 'x');
|
||||
|
||||
Reference in New Issue
Block a user