Generator: added a tests that adds a 'true' to an array

This commit is contained in:
Benoit Blanchon
2014-06-24 21:15:07 +02:00
parent 5c119099f3
commit a27bb3097a
2 changed files with 23 additions and 1 deletions

View File

@ -64,6 +64,13 @@ namespace JsonGeneratorTests
AssertJsonIs("[3.14,2.72]");
}
TEST_METHOD(AddTrue)
{
arr.add(true);
AssertJsonIs("[true]");
}
void AssertJsonIs(const char* expected)
{
char buffer[256];