mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added a test that adds a nested array to an array
This commit is contained in:
		| @@ -111,6 +111,16 @@ namespace JsonGeneratorTests | ||||
|             AssertJsonIs("[[]]"); | ||||
|         } | ||||
|  | ||||
|         TEST_METHOD(AddOneNestedArrayWithOneItem) | ||||
|         { | ||||
|             JsonArray<1> nestedArray; | ||||
|             nestedArray.add(3.14); | ||||
|  | ||||
|             arr.add(nestedArray); | ||||
|  | ||||
|             AssertJsonIs("[[3.14]]"); | ||||
|         } | ||||
|  | ||||
|         void AssertJsonIs(const char* expected) | ||||
|         {       | ||||
|             char buffer[256]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user