From eed76226d35c230bae34f978ec20c7d5982ccdac Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sun, 11 Jan 2009 15:24:11 +0000 Subject: test re-adding elements to emptied hashmap svn-id: r35829 --- test/common/hashmap.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') 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) { -- cgit v1.2.3