Added a test that adds two booleans to an array

This commit is contained in:
Benoit Blanchon
2014-06-24 21:18:12 +02:00
parent 77a3e1737d
commit 3d4f0f741d

View File

@ -78,6 +78,14 @@ namespace JsonGeneratorTests
AssertJsonIs("[false]"); AssertJsonIs("[false]");
} }
TEST_METHOD(AddTwoBooleans)
{
arr.add(false);
arr.add(true);
AssertJsonIs("[false,true]");
}
void AssertJsonIs(const char* expected) void AssertJsonIs(const char* expected)
{ {
char buffer[256]; char buffer[256];