mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			309 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			309 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // ArduinoJson - arduinojson.org
 | |
| // Copyright Benoit Blanchon 2014-2018
 | |
| // MIT License
 | |
| 
 | |
| #include <ArduinoJson.h>
 | |
| #include <catch.hpp>
 | |
| 
 | |
| TEST_CASE("measureMsgPack()") {
 | |
|   DynamicJsonDocument doc;
 | |
|   JsonObject &object = doc.to<JsonObject>();
 | |
|   object["hello"] = "world";
 | |
| 
 | |
|   REQUIRE(measureMsgPack(doc) == 13);
 | |
| }
 |