mirror of
				https://github.com/bblanchon/ArduinoJson.git
				synced 2025-11-04 00:21:36 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			387 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			387 B
		
	
	
	
		
			C++
		
	
	
	
	
	
// ArduinoJson - https://arduinojson.org
 | 
						|
// Copyright © 2014-2024, Benoit BLANCHON
 | 
						|
// MIT License
 | 
						|
 | 
						|
#define ARDUINO
 | 
						|
#define memcpy_P(dest, src, n) memcpy((dest), (src), (n))
 | 
						|
 | 
						|
#include <ArduinoJson.h>
 | 
						|
 | 
						|
#include <catch.hpp>
 | 
						|
 | 
						|
TEST_CASE("Issue1707") {
 | 
						|
  JsonDocument doc;
 | 
						|
 | 
						|
  DeserializationError err = deserializeJson(doc, F("{\"hello\":12}"));
 | 
						|
  REQUIRE(err == DeserializationError::Ok);
 | 
						|
}
 |