mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-14 19:16:35 +02:00
15 lines
326 B
C++
15 lines
326 B
C++
// ArduinoJson - https://arduinojson.org
|
|
// Copyright © 2014-2023, Benoit BLANCHON
|
|
// MIT License
|
|
|
|
#include <ArduinoJson.h>
|
|
#include <catch.hpp>
|
|
|
|
TEST_CASE("measureMsgPack()") {
|
|
DynamicJsonDocument doc(4096);
|
|
JsonObject object = doc.to<JsonObject>();
|
|
object["hello"] = "world";
|
|
|
|
REQUIRE(measureMsgPack(doc) == 13);
|
|
}
|