aboutsummaryrefslogtreecommitdiff
path: root/test/common/map.h
diff options
context:
space:
mode:
authorMax Horn2006-03-28 15:16:04 +0000
committerMax Horn2006-03-28 15:16:04 +0000
commitd3e08aedbb838a36d4ecfc11f87314cf2f1db04f (patch)
tree5393260b83b276af61c55dc73ccc28030a0cc83c /test/common/map.h
parent62da4eec26f26d5e2f45af02f5185799df58452b (diff)
downloadscummvm-rg350-d3e08aedbb838a36d4ecfc11f87314cf2f1db04f.tar.gz
scummvm-rg350-d3e08aedbb838a36d4ecfc11f87314cf2f1db04f.tar.bz2
scummvm-rg350-d3e08aedbb838a36d4ecfc11f87314cf2f1db04f.zip
Adapted unit tests to current situation
svn-id: r21481
Diffstat (limited to 'test/common/map.h')
-rw-r--r--test/common/map.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/common/map.h b/test/common/map.h
index 00e5f6c9f6..c113ffe987 100644
--- a/test/common/map.h
+++ b/test/common/map.h
@@ -33,9 +33,9 @@ class MapTestSuite : public CxxTest::TestSuite
map[0] = 17;
map[1] = 33;
TS_ASSERT( map.contains(1) );
- map.remove(1);
+ map.erase(1);
TS_ASSERT( !map.contains(1) );
- map.addKey(1);
+ map[1] = 42;
TS_ASSERT( map.contains(1) );
}
@@ -61,4 +61,6 @@ class MapTestSuite : public CxxTest::TestSuite
TS_ASSERT_EQUALS( mapA[3], 12 );
TS_ASSERT_EQUALS( mapA[4], 96 );
}
+
+ // TODO: Add test cases for iterators, find, ...
};