Test an object with comma, quote and column in the value

This commit is contained in:
Benoit Blanchon
2014-08-25 10:31:03 +02:00
parent aafabd8e8d
commit 66c05041e8
3 changed files with 38 additions and 9 deletions

View File

@ -56,6 +56,15 @@ namespace JsonGeneratorTests
"}");
}
TEST_METHOD(ObjectTrickyCharacters)
{
whenInputIs("{\"key\":\":\\\"',\"}");
outputMustBe(
"{\n"
" \"key\":\":\\\"',\"\n"
"}");
}
private:
void whenInputIs(const char input[])