use_long_long_0.cpp 292 B

12345678910111213141516
  1. #define ARDUINOJSON_USE_LONG_LONG 0
  2. #include <ArduinoJson.h>
  3. #include <catch.hpp>
  4. TEST_CASE("ARDUINOJSON_USE_LONG_LONG == 0") {
  5. DynamicJsonDocument doc(4096);
  6. doc["A"] = 42;
  7. doc["B"] = 84;
  8. std::string json;
  9. serializeJson(doc, json);
  10. REQUIRE(json == "{\"A\":42,\"B\":84}");
  11. }