mirror of
				https://github.com/bblanchon/ArduinoJson.git
				synced 2025-11-04 00:21:36 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			272 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			272 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#define ARDUINOJSON_DECODE_UNICODE 1
 | 
						|
#include <ArduinoJson.h>
 | 
						|
 | 
						|
#include <catch.hpp>
 | 
						|
 | 
						|
TEST_CASE("ARDUINOJSON_DECODE_UNICODE == 1") {
 | 
						|
  JsonDocument doc;
 | 
						|
  DeserializationError err = deserializeJson(doc, "\"\\uD834\\uDD1E\"");
 | 
						|
 | 
						|
  REQUIRE(err == DeserializationError::Ok);
 | 
						|
}
 |