Added a test of one string over hash table's capacity

This commit is contained in:
Benoît Blanchon
2014-06-27 13:53:55 +02:00
parent e26cea59e5
commit 5f77949636
2 changed files with 9 additions and 1 deletions

View File

@ -37,7 +37,7 @@ namespace JsonGeneratorTests
jsonIs("[\"hello\",\"world\"]"); jsonIs("[\"hello\",\"world\"]");
} }
TEST_METHOD(AddOneStringOverCapacity) TEST_METHOD(OneStringOverCapacity)
{ {
addValue("hello"); addValue("hello");
addValue("world"); addValue("world");

View File

@ -29,6 +29,14 @@ namespace JsonGeneratorTests
jsonIs("{\"key1\":\"value1\",\"key2\":\"value2\"}"); jsonIs("{\"key1\":\"value1\",\"key2\":\"value2\"}");
} }
TEST_METHOD(OneStringOverCapacity)
{
add("key1", "value1");
add("key2", "value2");
add("key3", "value3");
jsonIs("{\"key1\":\"value1\",\"key2\":\"value2\"}");
}
private: private:
template<typename T> template<typename T>