aboutsummaryrefslogtreecommitdiff
path: root/test/common/hashmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/common/hashmap.h')
-rw-r--r--test/common/hashmap.h8
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, ...
};