mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Made JsonBuffer non-copyable (PR #524 by @luisrayas3)
				
					
				
			This commit is contained in:
		| @@ -36,10 +36,10 @@ TEST_CASE("DynamicJsonBuffer::alloc()") { | ||||
|  | ||||
|   SECTION("Alignment") { | ||||
|     // make room for two but not three | ||||
|     buffer = DynamicJsonBuffer(2 * sizeof(void*) + 1); | ||||
|     DynamicJsonBuffer tinyBuf(2 * sizeof(void*) + 1); | ||||
|  | ||||
|     REQUIRE(isAligned(buffer.alloc(1)));  // this on is aligned by design | ||||
|     REQUIRE(isAligned(buffer.alloc(1)));  // this one fits in the first block | ||||
|     REQUIRE(isAligned(buffer.alloc(1)));  // this one requires a new block | ||||
|     REQUIRE(isAligned(tinyBuf.alloc(1)));  // this on is aligned by design | ||||
|     REQUIRE(isAligned(tinyBuf.alloc(1)));  // this one fits in the first block | ||||
|     REQUIRE(isAligned(tinyBuf.alloc(1)));  // this one requires a new block | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user