mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-15 03:26:39 +02:00
20 lines
433 B
C++
20 lines
433 B
C++
// ArduinoJson - https://arduinojson.org
|
|
// Copyright © 2014-2023, Benoit BLANCHON
|
|
// MIT License
|
|
|
|
#define ARDUINO
|
|
#define memcpy_P(dest, src, n) memcpy((dest), (src), (n))
|
|
|
|
#include "progmem_emulation.hpp"
|
|
|
|
#include <ArduinoJson.h>
|
|
|
|
#include <catch.hpp>
|
|
|
|
TEST_CASE("Issue1707") {
|
|
DynamicJsonDocument doc(128);
|
|
|
|
DeserializationError err = deserializeJson(doc, F("{\"hello\":12}"));
|
|
REQUIRE(err == DeserializationError::Ok);
|
|
}
|