mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Support NUL inside string values (issue #1646)
This commit is contained in:
		| @@ -60,9 +60,8 @@ TEST_CASE("\\u0000") { | ||||
|   CHECK(result[4] == 'z'); | ||||
|   CHECK(result[5] == 0); | ||||
|  | ||||
|   // ArduinoJson strings doesn't store string length, so the following returns 2 | ||||
|   // instead of 5 (issue #1646) | ||||
|   CHECK(doc.as<std::string>().size() == 2); | ||||
|   CHECK(doc.as<JsonString>().size() == 5); | ||||
|   CHECK(doc.as<std::string>().size() == 5); | ||||
| } | ||||
|  | ||||
| TEST_CASE("Truncated JSON string") { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user