diff --git a/JsonGeneratorTests/JsonHashTableTests.cpp b/JsonGeneratorTests/JsonHashTableTests.cpp index a1630042..66d85255 100644 --- a/JsonGeneratorTests/JsonHashTableTests.cpp +++ b/JsonGeneratorTests/JsonHashTableTests.cpp @@ -66,7 +66,7 @@ namespace JsonGeneratorTests jsonIs("{\"key\":false}"); } - TEST_METHOD(AddOneEmptyNestedArray) + TEST_METHOD(OneEmptyNestedArray) { JsonArray<1> nestedArray; @@ -75,6 +75,15 @@ namespace JsonGeneratorTests jsonIs("{\"key\":[]}"); } + TEST_METHOD(OneEmptyNestedHash) + { + JsonHashTable<1> nestedHash; + + addNested("key", nestedHash); + + jsonIs("{\"key\":{}}"); + } + private: void addNested(const char* key, JsonObjectBase& value)