Fix wrong tests in TestMap and TestSet
This commit is contained in:
parent
30ca167bf9
commit
bf8bab2c4b
|
@ -222,9 +222,11 @@ class TestMap : public Test {
|
|||
rp3d_test(map3.size() == 3);
|
||||
it = map3.begin();
|
||||
it = map3.remove(it);
|
||||
rp3d_test(!map3.containsKey(1));
|
||||
rp3d_test(map3.size() == 2);
|
||||
rp3d_test(it->second == 20);
|
||||
it = map3.remove(it);
|
||||
rp3d_test(map3.size() == 1);
|
||||
it = map3.remove(it);
|
||||
rp3d_test(map3.size() == 0);
|
||||
|
||||
map3.add(Pair<int, int>(56, 32));
|
||||
map3.add(Pair<int, int>(23, 89));
|
||||
|
|
|
@ -232,9 +232,11 @@ class TestSet : public Test {
|
|||
rp3d_test(set3.size() == 3);
|
||||
auto it = set3.begin();
|
||||
it = set3.remove(it);
|
||||
rp3d_test(!set3.contains(1));
|
||||
rp3d_test(set3.size() == 2);
|
||||
rp3d_test(*it == 2);
|
||||
it = set3.remove(it);
|
||||
rp3d_test(set3.size() == 1);
|
||||
it = set3.remove(it);
|
||||
rp3d_test(set3.size() == 0);
|
||||
|
||||
set3.add(6);
|
||||
set3.add(7);
|
||||
|
|
Loading…
Reference in New Issue
Block a user