Files

16 lines
319 B
C++
Raw Permalink Normal View History

2025-06-19 11:23:05 +02:00
// ArduinoJson - https://arduinojson.org
2026-07-06 18:35:16 +02:00
// Copyright © 2014-2026, Benoit BLANCHON
2025-06-19 11:23:05 +02:00
// MIT License
#define true 0x1
#define false 0x0
#include <ArduinoJson.h>
#include <catch.hpp>
TEST_CASE("Issue #2181") {
JsonDocument doc;
doc["hello"] = "world";
REQUIRE(doc.as<std::string>() == "{\"hello\":\"world\"}");
}