mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Format code with clang-format
This commit is contained in:
		| @@ -10,7 +10,7 @@ using namespace ARDUINOJSON_NAMESPACE; | ||||
| TEST_CASE("ElementProxy::add()") { | ||||
|   DynamicJsonDocument doc(4096); | ||||
|   doc.addElement(); | ||||
|   ElementProxy<JsonDocument&> ep = doc[0]; | ||||
|   ElementProxy<JsonDocument &> ep = doc[0]; | ||||
|  | ||||
|   SECTION("add(int)") { | ||||
|     ep.add(42); | ||||
| @@ -36,7 +36,7 @@ TEST_CASE("ElementProxy::add()") { | ||||
| TEST_CASE("ElementProxy::clear()") { | ||||
|   DynamicJsonDocument doc(4096); | ||||
|   doc.addElement(); | ||||
|   ElementProxy<JsonDocument&> ep = doc[0]; | ||||
|   ElementProxy<JsonDocument &> ep = doc[0]; | ||||
|  | ||||
|   SECTION("size goes back to zero") { | ||||
|     ep.add(42); | ||||
| @@ -96,7 +96,7 @@ TEST_CASE("ElementProxy::operator==()") { | ||||
| TEST_CASE("ElementProxy::remove()") { | ||||
|   DynamicJsonDocument doc(4096); | ||||
|   doc.addElement(); | ||||
|   ElementProxy<JsonDocument&> ep = doc[0]; | ||||
|   ElementProxy<JsonDocument &> ep = doc[0]; | ||||
|  | ||||
|   SECTION("remove(int)") { | ||||
|     ep.add(1); | ||||
| @@ -143,7 +143,7 @@ TEST_CASE("ElementProxy::remove()") { | ||||
|  | ||||
| TEST_CASE("ElementProxy::set()") { | ||||
|   DynamicJsonDocument doc(4096); | ||||
|   ElementProxy<JsonDocument&> ep = doc[0]; | ||||
|   ElementProxy<JsonDocument &> ep = doc[0]; | ||||
|  | ||||
|   SECTION("set(int)") { | ||||
|     ep.set(42); | ||||
| @@ -169,7 +169,7 @@ TEST_CASE("ElementProxy::set()") { | ||||
| TEST_CASE("ElementProxy::size()") { | ||||
|   DynamicJsonDocument doc(4096); | ||||
|   doc.addElement(); | ||||
|   ElementProxy<JsonDocument&> ep = doc[0]; | ||||
|   ElementProxy<JsonDocument &> ep = doc[0]; | ||||
|  | ||||
|   SECTION("returns 0") { | ||||
|     REQUIRE(ep.size() == 0); | ||||
| @@ -191,7 +191,7 @@ TEST_CASE("ElementProxy::size()") { | ||||
| TEST_CASE("ElementProxy::memoryUsage()") { | ||||
|   DynamicJsonDocument doc(4096); | ||||
|   doc.addElement(); | ||||
|   ElementProxy<JsonDocument&> ep = doc[0]; | ||||
|   ElementProxy<JsonDocument &> ep = doc[0]; | ||||
|  | ||||
|   SECTION("returns 0 for null") { | ||||
|     REQUIRE(ep.memoryUsage() == 0); | ||||
| @@ -205,7 +205,7 @@ TEST_CASE("ElementProxy::memoryUsage()") { | ||||
|  | ||||
| TEST_CASE("ElementProxy::operator[]") { | ||||
|   DynamicJsonDocument doc(4096); | ||||
|   ElementProxy<JsonDocument&> ep = doc[1]; | ||||
|   ElementProxy<JsonDocument &> ep = doc[1]; | ||||
|  | ||||
|   SECTION("set member") { | ||||
|     ep["world"] = 42; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user