issue1707.cpp 432 B

12345678910111213141516171819
  1. // ArduinoJson - https://arduinojson.org
  2. // Copyright © 2014-2022, Benoit BLANCHON
  3. // MIT License
  4. #define ARDUINO
  5. #define memcpy_P(dest, src, n) memcpy((dest), (src), (n))
  6. #include "progmem_emulation.hpp"
  7. #include <ArduinoJson.h>
  8. #include <catch.hpp>
  9. TEST_CASE("Issue1707") {
  10. StaticJsonDocument<128> doc;
  11. DeserializationError err = deserializeJson(doc, F("{\"hello\":12}"));
  12. REQUIRE(err == DeserializationError::Ok);
  13. }