measure.cpp 326 B

1234567891011121314
  1. // ArduinoJson - https://arduinojson.org
  2. // Copyright © 2014-2022, Benoit BLANCHON
  3. // MIT License
  4. #include <ArduinoJson.h>
  5. #include <catch.hpp>
  6. TEST_CASE("measureMsgPack()") {
  7. DynamicJsonDocument doc(4096);
  8. JsonObject object = doc.to<JsonObject>();
  9. object["hello"] = "world";
  10. REQUIRE(measureMsgPack(doc) == 13);
  11. }