From 380722402f9fc909b74690bf53ad78374590c997 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Mon, 25 Aug 2014 09:23:41 +0200 Subject: [PATCH] Added a test of an empty object --- JsonGeneratorTests/IntentedPrintTests.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/JsonGeneratorTests/IntentedPrintTests.cpp b/JsonGeneratorTests/IntentedPrintTests.cpp index 662ac5d5..b69c946c 100644 --- a/JsonGeneratorTests/IntentedPrintTests.cpp +++ b/JsonGeneratorTests/IntentedPrintTests.cpp @@ -25,6 +25,12 @@ namespace JsonGeneratorTests outputMustBe(""); } + TEST_METHOD(EmptyObject) + { + whenInputIs("{}"); + outputMustBe("{}"); + } + private: void whenInputIs(const char input[])