Added a test with a NULL string

This commit is contained in:
Benoît Blanchon
2014-06-26 13:16:22 +02:00
parent 18587d132b
commit 1c4d4bfd2d
2 changed files with 14 additions and 0 deletions

View File

@ -28,6 +28,12 @@ namespace JsonGeneratorTests
assertResultIs("\"\"");
}
TEST_METHOD(Null)
{
append(NULL);
assertResultIs("null");
}
TEST_METHOD(OneString)
{
append("ABCD");
@ -45,6 +51,9 @@ namespace JsonGeneratorTests
{
append("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
assertResultIs("\"ABCDEFGHIJKLMNOPQ\"");
append("");
assertResultIs("\"ABCDEFGHIJKLMNOPQ\"");
}
TEST_METHOD(SpecialChars)