mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-20 05:52:30 +02: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