mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-21 22:42:25 +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(JsonArray array, std::string expected) {
|
||||
std::string actual;
|
||||
size_t actualLen = serializeJson(array, actual);
|
||||
@ -15,7 +17,7 @@ static void check(JsonArray array, std::string expected) {
|
||||
}
|
||||
|
||||
TEST_CASE("serializeJson(JsonArray)") {
|
||||
JsonDocument doc(JSON_ARRAY_SIZE(2));
|
||||
JsonDocument doc(sizeofArray(2));
|
||||
JsonArray array = doc.to<JsonArray>();
|
||||
|
||||
SECTION("Empty") {
|
||||
|
Reference in New Issue
Block a user