diff options
-rw-r--r-- | test/common/hashmap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/common/hashmap.h b/test/common/hashmap.h index 8e31f38676..21cafde6b8 100644 --- a/test/common/hashmap.h +++ b/test/common/hashmap.h @@ -64,6 +64,11 @@ class HashMapTestSuite : public CxxTest::TestSuite TS_ASSERT( !container.empty() ); container.erase(4); TS_ASSERT( container.empty() ); + container[1] = 33; + TS_ASSERT( container.contains(1) ); + TS_ASSERT( !container.empty() ); + container.erase(1); + TS_ASSERT( container.empty() ); } void test_lookup(void) { |