mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Fix comma tests.
This commit is contained in:
		
				
					committed by
					
						 Benoît Blanchon
						Benoît Blanchon
					
				
			
			
				
	
			
			
			
						parent
						
							c49adfd6da
						
					
				
				
					commit
					3345255f16
				
			| @@ -100,7 +100,7 @@ TEST_CASE("deserialize JSON object") { | |||||||
|       REQUIRE(obj["key"] == "value"); |       REQUIRE(obj["key"] == "value"); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     SECTION("Before the colon") { |     SECTION("Before the comma") { | ||||||
|       DeserializationError err = |       DeserializationError err = | ||||||
|           deserializeJson(doc, "{\"key1\":\"value1\" ,\"key2\":\"value2\"}"); |           deserializeJson(doc, "{\"key1\":\"value1\" ,\"key2\":\"value2\"}"); | ||||||
|       JsonObject obj = doc.as<JsonObject>(); |       JsonObject obj = doc.as<JsonObject>(); | ||||||
| @@ -112,9 +112,9 @@ TEST_CASE("deserialize JSON object") { | |||||||
|       REQUIRE(obj["key2"] == "value2"); |       REQUIRE(obj["key2"] == "value2"); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     SECTION("After the colon") { |     SECTION("After the comma") { | ||||||
|       DeserializationError err = |       DeserializationError err = | ||||||
|           deserializeJson(doc, "{\"key1\":\"value1\" ,\"key2\":\"value2\"}"); |           deserializeJson(doc, "{\"key1\":\"value1\", \"key2\":\"value2\"}"); | ||||||
|       JsonObject obj = doc.as<JsonObject>(); |       JsonObject obj = doc.as<JsonObject>(); | ||||||
|  |  | ||||||
|       REQUIRE(err == DeserializationError::Ok); |       REQUIRE(err == DeserializationError::Ok); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user