From dbc3bee3a045f028e7026dd590c5db809472c327 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Mon, 25 Aug 2014 10:55:48 +0200 Subject: [PATCH] Test array with 2 elements --- JsonGeneratorTests/Intented_Array_Tests.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/JsonGeneratorTests/Intented_Array_Tests.cpp b/JsonGeneratorTests/Intented_Array_Tests.cpp index b59c4871..d3ad9fd4 100644 --- a/JsonGeneratorTests/Intented_Array_Tests.cpp +++ b/JsonGeneratorTests/Intented_Array_Tests.cpp @@ -34,6 +34,16 @@ namespace JsonGeneratorTests "]"); } + TEST_METHOD(TwoElements) + { + whenInputIs("[1,2]"); + outputMustBe( + "[\n" + " 1,\n" + " 2\n" + "]"); + } + private: void whenInputIs(const char input[])