mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Fixed operator|(MemberProxy, JsonObject) (fixes #1415)
				
					
				
			This commit is contained in:
		| @@ -121,6 +121,17 @@ TEST_CASE("MemberProxy::operator|()") { | ||||
|  | ||||
|     REQUIRE(sensor == std::string("gps")); | ||||
|   } | ||||
|  | ||||
|   SECTION("Issue #1415") { | ||||
|     JsonObject object = doc.to<JsonObject>(); | ||||
|     object["hello"] = "world"; | ||||
|  | ||||
|     StaticJsonDocument<0> emptyDoc; | ||||
|     JsonObject anotherObject = object["hello"] | emptyDoc.to<JsonObject>(); | ||||
|  | ||||
|     REQUIRE(anotherObject.isNull() == false); | ||||
|     REQUIRE(anotherObject.size() == 0); | ||||
|   } | ||||
| } | ||||
|  | ||||
| TEST_CASE("MemberProxy::remove()") { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user