From 1e44f5522e70b37b40d90411f940e1c2b40b7542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Blanchon?= Date: Thu, 26 Jun 2014 12:52:56 +0200 Subject: [PATCH] Added a test that appends an empty string --- JsonGeneratorTests/StringBuilderTests.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/JsonGeneratorTests/StringBuilderTests.cpp b/JsonGeneratorTests/StringBuilderTests.cpp index 34911c9d..4e418e3d 100644 --- a/JsonGeneratorTests/StringBuilderTests.cpp +++ b/JsonGeneratorTests/StringBuilderTests.cpp @@ -23,6 +23,16 @@ namespace JsonGeneratorTests assertResultIs(""); } + TEST_METHOD(AppendEmptyString) + { + append(""); + assertResultIs(""); + } + + void append(const char* s) + { + sb->append(s); + } void assertResultIs(const char* expected) {