2018-10-02 16:54:05 +02:00
|
|
|
#define ARDUINOJSON_USE_LONG_LONG 0
|
|
|
|
#include <ArduinoJson.h>
|
|
|
|
|
|
|
|
#include <catch.hpp>
|
|
|
|
|
|
|
|
TEST_CASE("ARDUINOJSON_USE_LONG_LONG == 0") {
|
2019-01-14 10:32:19 +01:00
|
|
|
DynamicJsonDocument doc(4096);
|
2018-10-02 16:54:05 +02:00
|
|
|
|
2020-05-12 18:53:26 +02:00
|
|
|
doc["A"] = 42;
|
|
|
|
doc["B"] = 84;
|
2018-10-02 16:54:05 +02:00
|
|
|
|
|
|
|
std::string json;
|
|
|
|
serializeJson(doc, json);
|
|
|
|
|
2020-05-12 18:53:26 +02:00
|
|
|
REQUIRE(json == "{\"A\":42,\"B\":84}");
|
2018-10-02 16:54:05 +02:00
|
|
|
}
|