issue2181.cpp 319 B

123456789101112131415
  1. // ArduinoJson - https://arduinojson.org
  2. // Copyright © 2014-2025, Benoit BLANCHON
  3. // MIT License
  4. #define true 0x1
  5. #define false 0x0
  6. #include <ArduinoJson.h>
  7. #include <catch.hpp>
  8. TEST_CASE("Issue #2181") {
  9. JsonDocument doc;
  10. doc["hello"] = "world";
  11. REQUIRE(doc.as<std::string>() == "{\"hello\":\"world\"}");
  12. }