- Add platformio.ini for ESP32 DevKit (Arduino framework, espressif32 6.10.0) - Vendor ArduinoJson, MPU6050_tockn, SCServo, Simple_FOC, and WebSockets so a fresh clone builds without downloading dependencies - Add .gitignore rules for PlatformIO/IDE build artifacts - Add controller PCB Gerber and drill files
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);
|
|
}
|