- 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
16 lines
310 B
C++
16 lines
310 B
C++
#include <ArduinoJson.h>
|
|
|
|
#include <catch.hpp>
|
|
#include <string>
|
|
|
|
TEST_CASE("C++20 smoke test") {
|
|
StaticJsonDocument<128> doc;
|
|
|
|
deserializeJson(doc, "{\"hello\":\"world\"}");
|
|
REQUIRE(doc["hello"] == "world");
|
|
|
|
std::string json;
|
|
serializeJson(doc, json);
|
|
REQUIRE(json == "{\"hello\":\"world\"}");
|
|
}
|