mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added support for CMake's unity builds
This commit is contained in:
		| @@ -7,15 +7,15 @@ | ||||
|  | ||||
| using namespace ARDUINOJSON_NAMESPACE; | ||||
|  | ||||
| char buffer[4096]; | ||||
|  | ||||
| TEST_CASE("MemoryPool::capacity()") { | ||||
|   char buffer[4096]; | ||||
|   const size_t capacity = 64; | ||||
|   MemoryPool pool(buffer, capacity); | ||||
|   REQUIRE(capacity == pool.capacity()); | ||||
| } | ||||
|  | ||||
| TEST_CASE("MemoryPool::size()") { | ||||
|   char buffer[4096]; | ||||
|   MemoryPool pool(buffer, sizeof(buffer)); | ||||
|  | ||||
|   SECTION("Initial size is 0") { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user