From 1118dd7b531e65650d5275c500bf7e0e2cf85c00 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Tue, 24 Jun 2014 21:19:05 +0200 Subject: [PATCH] Added a test that adds a boolean to a full array --- JsonGeneratorTests/JsonArrayTests.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/JsonGeneratorTests/JsonArrayTests.cpp b/JsonGeneratorTests/JsonArrayTests.cpp index 3b7bdea0..58c366dd 100644 --- a/JsonGeneratorTests/JsonArrayTests.cpp +++ b/JsonGeneratorTests/JsonArrayTests.cpp @@ -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];