moved iris-kit-esp8285 to subdir

This commit is contained in:
strawmanbobi
2024-10-08 16:42:36 +08:00
parent 89053640ef
commit cd861c50ed
676 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#define ARDUINOJSON_USE_DOUBLE 0
#include <ArduinoJson.h>
#include <catch.hpp>
TEST_CASE("ARDUINOJSON_USE_DOUBLE == 0") {
DynamicJsonDocument doc(4096);
JsonObject root = doc.to<JsonObject>();
root["pi"] = 3.14;
root["e"] = 2.72;
std::string json;
serializeJson(doc, json);
REQUIRE(json == "{\"pi\":3.14,\"e\":2.72}");
}