Tests empty nested objects in objects

This commit is contained in:
Benoit Blanchon
2014-08-25 10:36:25 +02:00
parent 410ca55e88
commit 76f9ecce75

View File

@ -65,6 +65,17 @@ namespace JsonGeneratorTests
"}"); "}");
} }
TEST_METHOD(ObjectWithEmptyNestedObjects)
{
whenInputIs("{\"key1\":{},\"key2\":{}}");
outputMustBe(
"{\n"
" \"key1\": {},\n"
" \"key2\": {}\n"
"}");
}
private: private:
void whenInputIs(const char input[]) void whenInputIs(const char input[])