mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			285 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			285 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #define ARDUINOJSON_DECODE_UNICODE 1
 | |
| #include <ArduinoJson.h>
 | |
| 
 | |
| #include <catch.hpp>
 | |
| 
 | |
| TEST_CASE("ARDUINOJSON_DECODE_UNICODE == 1") {
 | |
|   DynamicJsonDocument doc(2048);
 | |
|   DeserializationError err = deserializeJson(doc, "\"\\uD834\\uDD1E\"");
 | |
| 
 | |
|   REQUIRE(err == DeserializationError::Ok);
 | |
| }
 |