diff options
author | Johannes Schickel | 2008-03-30 02:39:21 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-03-30 02:39:21 +0000 |
commit | 06cf3d3c54d637abf6f1a3787d414de4a730f870 (patch) | |
tree | 797874820e5948f50ac506fc75feb2c2fd34cb96 /test | |
parent | dcc385f3de5d3b8d520bab310836c8e58e88ad0b (diff) | |
download | scummvm-rg350-06cf3d3c54d637abf6f1a3787d414de4a730f870.tar.gz scummvm-rg350-06cf3d3c54d637abf6f1a3787d414de4a730f870.tar.bz2 scummvm-rg350-06cf3d3c54d637abf6f1a3787d414de4a730f870.zip |
Add test for copying hashmaps.
svn-id: r31315
Diffstat (limited to 'test')
-rw-r--r-- | test/common/hashmap.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/common/hashmap.h b/test/common/hashmap.h index af78baba96..883e965065 100644 --- a/test/common/hashmap.h +++ b/test/common/hashmap.h @@ -70,6 +70,14 @@ class HashMapTestSuite : public CxxTest::TestSuite container.clear(); TS_ASSERT( container.begin() == container.end() ); } + + void test_hash_map_copy( void ) + { + Common::HashMap<int, int> map1, map2; + map1[323] = 32; + map2 = map1; + TS_ASSERT_EQUALS(map2[323], 32); + } // TODO: Add test cases for iterators, find, ... }; |