mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-16 03:52:16 +02:00
Remove JSON_ARRAY_SIZE()
, JSON_OBJECT_SIZE()
, and JSON_STRING_SIZE()
This commit is contained in:
@ -5,6 +5,8 @@
|
||||
#include <ArduinoJson.h>
|
||||
#include <catch.hpp>
|
||||
|
||||
using ArduinoJson::detail::sizeofArray;
|
||||
|
||||
static void check(const JsonArray array, const char* expected_data,
|
||||
size_t expected_len) {
|
||||
std::string expected(expected_data, expected_data + expected_len);
|
||||
@ -26,7 +28,7 @@ static void check(const JsonArray array, const std::string& expected) {
|
||||
}
|
||||
|
||||
TEST_CASE("serialize MsgPack array") {
|
||||
JsonDocument doc(JSON_ARRAY_SIZE(65536));
|
||||
JsonDocument doc(sizeofArray(65536));
|
||||
JsonArray array = doc.to<JsonArray>();
|
||||
|
||||
SECTION("empty") {
|
||||
|
Reference in New Issue
Block a user