From 3d4f0f741d59735cba07fb8979ea9c0d640711f2 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Tue, 24 Jun 2014 21:18:12 +0200 Subject: [PATCH] Added a test that adds two booleans to an array --- JsonGeneratorTests/JsonArrayTests.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/JsonGeneratorTests/JsonArrayTests.cpp b/JsonGeneratorTests/JsonArrayTests.cpp index 298e4094..3b7bdea0 100644 --- a/JsonGeneratorTests/JsonArrayTests.cpp +++ b/JsonGeneratorTests/JsonArrayTests.cpp @@ -78,6 +78,14 @@ namespace JsonGeneratorTests AssertJsonIs("[false]"); } + TEST_METHOD(AddTwoBooleans) + { + arr.add(false); + arr.add(true); + + AssertJsonIs("[false,true]"); + } + void AssertJsonIs(const char* expected) { char buffer[256];