mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Fixed error when the key of a JsonObject is a char[] and reduced code size when using const references (issue #423)
				
					
				
			This commit is contained in:
		| @@ -131,3 +131,9 @@ TEST_(StoreObjectSubscript) { | ||||
|  | ||||
|   EXPECT_EQ(42, _object["a"]); | ||||
| } | ||||
|  | ||||
| TEST_(KeyAsCharArray) {  // issue #423 | ||||
|   char key[] = "hello"; | ||||
|   _object[key] = 42; | ||||
|   EXPECT_EQ(42, _object[key]); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user