forked from bblanchon/ArduinoJson
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:
|
private:
|
||||||
|
|
||||||
void whenInputIs(const char input[])
|
void whenInputIs(const char input[])
|
||||||
|
Reference in New Issue
Block a user