mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added string deduplication (closes #1303)
This commit is contained in:
		| @@ -212,7 +212,7 @@ TEST_CASE("StaticJsonDocument") { | ||||
|  | ||||
|   SECTION("garbageCollect()") { | ||||
|     StaticJsonDocument<256> doc; | ||||
|     doc[std::string("example")] = std::string("example"); | ||||
|     doc[std::string("example")] = std::string("jukebox"); | ||||
|     doc.remove("example"); | ||||
|     REQUIRE(doc.memoryUsage() == JSON_OBJECT_SIZE(1) + 16); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user