Added a tests that adds a 'null' to an array

This commit is contained in:
Benoit Blanchon
2014-06-24 21:24:38 +02:00
parent 1118dd7b53
commit 2a20c5a25c
2 changed files with 15 additions and 3 deletions

View File

@ -16,6 +16,13 @@ namespace JsonGeneratorTests
AssertJsonIs("[]");
}
TEST_METHOD(AddNull)
{
arr.add((char*)0);
AssertJsonIs("[null]");
}
TEST_METHOD(AddOneString)
{
arr.add("hello");