2022-02-06 11:14:23 +01:00
|
|
|
// ArduinoJson - https://arduinojson.org
|
2023-02-16 11:45:01 +01:00
|
|
|
// Copyright © 2014-2023, Benoit BLANCHON
|
2022-02-06 11:14:23 +01:00
|
|
|
// MIT License
|
|
|
|
|
|
|
|
#define ARDUINO
|
|
|
|
#define memcpy_P(dest, src, n) memcpy((dest), (src), (n))
|
|
|
|
|
2023-01-26 14:28:35 +01:00
|
|
|
#include "progmem_emulation.hpp"
|
|
|
|
|
2022-02-06 11:14:23 +01:00
|
|
|
#include <ArduinoJson.h>
|
|
|
|
|
|
|
|
#include <catch.hpp>
|
|
|
|
|
|
|
|
TEST_CASE("Issue1707") {
|
2023-03-15 14:54:55 +01:00
|
|
|
DynamicJsonDocument doc(128);
|
2022-02-06 11:14:23 +01:00
|
|
|
|
|
|
|
DeserializationError err = deserializeJson(doc, F("{\"hello\":12}"));
|
|
|
|
REQUIRE(err == DeserializationError::Ok);
|
|
|
|
}
|