mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-11-04 16:41:37 +01:00
16 lines
319 B
C++
16 lines
319 B
C++
|
|
// ArduinoJson - https://arduinojson.org
|
||
|
|
// Copyright © 2014-2025, Benoit BLANCHON
|
||
|
|
// 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\"}");
|
||
|
|
}
|