7 SUBCASE (
"test case is empty") {
CHECK (
t->contains (1) ==
false); }
9 SUBCASE (
"test case is not empty") {
15 CHECK (
t->contains (1) ==
true);
16 CHECK (
t->contains (2) ==
true);
17 CHECK (
t->contains (3) ==
false);
25 CHECK (
t->contains (1) ==
true);
26 CHECK (
t->contains (2) ==
true);
27 CHECK (
t->contains (3) ==
true);
28 CHECK (
t->contains (5) ==
false);
41 CHECK (
t->contains (1) ==
true);
42 CHECK (
t->contains (2) ==
true);
43 CHECK (
t->contains (3) ==
false);
49 SUBCASE (
"test Shorten the empty rel_hashmap") {
53 SUBCASE (
"test not Shorten the empty rel_hashmap") {
68 CHECK (
t->contains (1) ==
false);
69 CHECK (
t->contains (2) ==
false);
70 CHECK (
t->contains (4) ==
false);
79 SUBCASE (
"test merge the empty rel_hashmap") {
89 SUBCASE (
"test not merge the empty rel_hashmap") {
104 CHECK (
t->contains (1) ==
true);
105 CHECK (
t->contains (2) ==
true);
106 CHECK (
t->contains (3) ==
true);
107 CHECK (
t->contains (4) ==
true);
108 CHECK (
t->contains (5) ==
false);
120 SUBCASE (
"test if all the same") {
124 t->find_changes (
hm2);
134 t->find_changes (
hm2);
140 SUBCASE (
"test if all different") {
144 t->find_changes (
hm2);
158 SUBCASE (
"test if all the same") {
162 t->find_differences (
hm2);
174 SUBCASE (
"test if key different") {
176 SUBCASE (
"test if different from first, but the same as next") {
180 t->find_differences (
hm3);
188 SUBCASE (
"test if different from all the others") {
192 t->find_differences (
hm3);
202 t->find_differences (
hm4);
222 SUBCASE (
"test change the same") {
240 SUBCASE (
"test change the different") {
252 SUBCASE (
"test change the next") {
The list class represents a linked list.
#define TM_CHECK_THROWS(statements)
TEST_CASE("test for operator+= and advance()")