Added a test that adds a boolean to a full array

This commit is contained in:
Benoit Blanchon
2014-06-24 21:19:05 +02:00
parent 3d4f0f741d
commit 1118dd7b53

View File

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