mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added DeserializationError::EmptyInput
This commit is contained in:
		| @@ -373,16 +373,22 @@ TEST_CASE("Comments in objects") { | ||||
| TEST_CASE("Comments alone") { | ||||
|   DynamicJsonDocument doc(2048); | ||||
|  | ||||
|   SECTION("Just a trailing comment") { | ||||
|   SECTION("Just a trailing comment with no line break") { | ||||
|     DeserializationError err = deserializeJson(doc, "// comment"); | ||||
|  | ||||
|     REQUIRE(err == DeserializationError::IncompleteInput); | ||||
|   } | ||||
|  | ||||
|   SECTION("Just a trailing comment with no a break") { | ||||
|     DeserializationError err = deserializeJson(doc, "// comment\n"); | ||||
|  | ||||
|     REQUIRE(err == DeserializationError::EmptyInput); | ||||
|   } | ||||
|  | ||||
|   SECTION("Just a block comment") { | ||||
|     DeserializationError err = deserializeJson(doc, "/*comment*/"); | ||||
|  | ||||
|     REQUIRE(err == DeserializationError::IncompleteInput); | ||||
|     REQUIRE(err == DeserializationError::EmptyInput); | ||||
|   } | ||||
|  | ||||
|   SECTION("Just a slash") { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user