2023-08-09 18:58:30 +02:00
|
|
|
// ArduinoJson - https://arduinojson.org
|
2024-01-03 08:47:06 +01:00
|
|
|
// Copyright © 2014-2024, Benoit BLANCHON
|
2023-08-09 18:58:30 +02:00
|
|
|
// MIT License
|
|
|
|
|
|
|
|
#include <ArduinoJson.h>
|
|
|
|
#include <catch.hpp>
|
|
|
|
|
|
|
|
TEST_CASE("JSON_ARRAY_SIZE") {
|
|
|
|
REQUIRE(JSON_ARRAY_SIZE(10) == ArduinoJson::detail::sizeofArray(10));
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST_CASE("JSON_OBJECT_SIZE") {
|
|
|
|
REQUIRE(JSON_OBJECT_SIZE(10) == ArduinoJson::detail::sizeofObject(10));
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST_CASE("JSON_STRING_SIZE") {
|
2024-02-18 19:58:22 +01:00
|
|
|
REQUIRE(JSON_STRING_SIZE(10) == 11); // issue #2054
|
2023-08-09 18:58:30 +02:00
|
|
|
}
|