Test nested arrays

This commit is contained in:
Benoit Blanchon
2014-08-25 11:02:38 +02:00
parent 981adf1989
commit 3d322fdb28

View File

@ -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[])