From e31a2136fc42b24cc31ca02f1887ec66a2e122dc Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Mon, 25 Aug 2014 09:24:31 +0200 Subject: [PATCH] Test with an empty array --- JsonGeneratorTests/IntentedPrintTests.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/JsonGeneratorTests/IntentedPrintTests.cpp b/JsonGeneratorTests/IntentedPrintTests.cpp index b69c946c..60727282 100644 --- a/JsonGeneratorTests/IntentedPrintTests.cpp +++ b/JsonGeneratorTests/IntentedPrintTests.cpp @@ -31,6 +31,13 @@ namespace JsonGeneratorTests outputMustBe("{}"); } + TEST_METHOD(EmptyArray) + { + whenInputIs("[]"); + outputMustBe("[]"); + } + + private: void whenInputIs(const char input[])