From 495efd8629d5dccfe20cd61eda6826e83b2d608c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Blanchon?= Date: Fri, 27 Jun 2014 13:57:06 +0200 Subject: [PATCH] Added a test that adds a null in a hash table --- JsonGeneratorTests/JsonHashTableTests.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/JsonGeneratorTests/JsonHashTableTests.cpp b/JsonGeneratorTests/JsonHashTableTests.cpp index 7d6823ab..95cb814e 100644 --- a/JsonGeneratorTests/JsonHashTableTests.cpp +++ b/JsonGeneratorTests/JsonHashTableTests.cpp @@ -44,6 +44,13 @@ namespace JsonGeneratorTests jsonIs("{\"pi\":3.14}"); } + TEST_METHOD(OneNull) + { + add("key", (char*)0); + + jsonIs("{\"key\":null}"); + } + private: template