Added a test that adds a null in a hash table

This commit is contained in:
Benoît Blanchon
2014-06-27 13:57:06 +02:00
parent f548093d86
commit 495efd8629

View File

@ -44,6 +44,13 @@ namespace JsonGeneratorTests
jsonIs("{\"pi\":3.14}"); jsonIs("{\"pi\":3.14}");
} }
TEST_METHOD(OneNull)
{
add("key", (char*)0);
jsonIs("{\"key\":null}");
}
private: private:
template<typename T> template<typename T>