aboutsummaryrefslogtreecommitdiff
path: root/test/common
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2009-01-11 15:24:11 +0000
committerWillem Jan Palenstijn2009-01-11 15:24:11 +0000
commiteed76226d35c230bae34f978ec20c7d5982ccdac (patch)
tree83ca21d033ae16813b7b070e0ce5533126456cd4 /test/common
parente399865ee834c9e74325955a8b19574d2ce80fd9 (diff)
downloadscummvm-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/common')
-rw-r--r--test/common/hashmap.h5
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) {