mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Test nested arrays
This commit is contained in:
		| @@ -54,6 +54,22 @@ namespace JsonGeneratorTests | ||||
|                 "]"); | ||||
|         } | ||||
|  | ||||
|         TEST_METHOD(NestedArrays) | ||||
|         { | ||||
|             whenInputIs("[[1,2],[3,4]]"); | ||||
|             outputMustBe( | ||||
|                 "[\n" | ||||
|                 " [\n" | ||||
|                 "  1,\n" | ||||
|                 "  2\n" | ||||
|                 " ],\n" | ||||
|                 " [\n" | ||||
|                 "  3,\n" | ||||
|                 "  4\n" | ||||
|                 " ]\n" | ||||
|                 "]"); | ||||
|         } | ||||
|  | ||||
|     private: | ||||
|  | ||||
|         void whenInputIs(const char input[]) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user