diff options
author | Willem Jan Palenstijn | 2009-01-11 15:24:11 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2009-01-11 15:24:11 +0000 |
commit | eed76226d35c230bae34f978ec20c7d5982ccdac (patch) | |
tree | 83ca21d033ae16813b7b070e0ce5533126456cd4 /test | |
parent | e399865ee834c9e74325955a8b19574d2ce80fd9 (diff) | |
download | scummvm-rg350-eed76226d35c230bae34f978ec20c7d5982ccdac.tar.gz scummvm-rg350-eed76226d35c230bae34f978ec20c7d5982ccdac.tar.bz2 scummvm-rg350-eed76226d35c230bae34f978ec20c7d5982ccdac.zip |
test re-adding elements to emptied hashmap
svn-id: r35829
Diffstat (limited to 'test')
-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) { |