mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Filter: exact match takes precedence over wildcard (fixes #1628)
This commit is contained in:
		| @@ -232,6 +232,15 @@ TEST_CASE("Filtering") { | ||||
|       "{\"example\":{\"outcome\":42}}", | ||||
|       2 * JSON_OBJECT_SIZE(1) + 16 | ||||
|     }, | ||||
|     { | ||||
|       // exclusion filter (issue #1628) | ||||
|       "{\"example\":1,\"ignored\":2}", | ||||
|       "{\"*\":true,\"ignored\":false}", | ||||
|       10, | ||||
|       DeserializationError::Ok, | ||||
|       "{\"example\":1}", | ||||
|       JSON_OBJECT_SIZE(1) + 8 | ||||
|     }, | ||||
|     { | ||||
|       // only the first element of array counts | ||||
|       "[1,2,3]", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user