Test empty nested arrays

This commit is contained in:
Benoit Blanchon
2014-08-25 11:01:22 +02:00
parent dbc3bee3a0
commit 981adf1989
2 changed files with 24 additions and 2 deletions

View File

@ -44,6 +44,16 @@ namespace JsonGeneratorTests
"]");
}
TEST_METHOD(EmptyNestedArrays)
{
whenInputIs("[[],[]]");
outputMustBe(
"[\n"
" [],\n"
" []\n"
"]");
}
private:
void whenInputIs(const char input[])