From 06cf3d3c54d637abf6f1a3787d414de4a730f870 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 30 Mar 2008 02:39:21 +0000 Subject: Add test for copying hashmaps. svn-id: r31315 --- test/common/hashmap.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 map1, map2; + map1[323] = 32; + map2 = map1; + TS_ASSERT_EQUALS(map2[323], 32); + } // TODO: Add test cases for iterators, find, ... }; -- cgit v1.2.3