15 lines
308 B
C++
15 lines
308 B
C++
// ArduinoJson - arduinojson.org
|
|
// Copyright Benoit Blanchon 2014-2018
|
|
// MIT License
|
|
|
|
#include <ArduinoJson.h>
|
|
#include <catch.hpp>
|
|
|
|
TEST_CASE("measureMsgPack()") {
|
|
DynamicJsonDocument doc;
|
|
JsonObject object = doc.to<JsonObject>();
|
|
object["hello"] = "world";
|
|
|
|
REQUIRE(measureMsgPack(doc) == 13);
|
|
}
|