Go to the source code of this file.
◆ TEST_CASE() [1/7]
Definition at line 4 of file rel_hashmap_test.cpp.
4 {
6
7 SUBCASE (
"test case is empty") {
CHECK (
t->contains (1) ==
false); }
8
9 SUBCASE (
"test case is not empty") {
14
15 CHECK (
t->contains (1) ==
true);
16 CHECK (
t->contains (2) ==
true);
17 CHECK (
t->contains (3) ==
false);
18
24
25 CHECK (
t->contains (1) ==
true);
26 CHECK (
t->contains (2) ==
true);
27 CHECK (
t->contains (3) ==
true);
28 CHECK (
t->contains (5) ==
false);
29 }
30}
The list class represents a linked list.
◆ TEST_CASE() [2/7]
◆ TEST_CASE() [3/7]
Definition at line 46 of file rel_hashmap_test.cpp.
46 {
48
49 SUBCASE (
"test Shorten the empty rel_hashmap") {
51 }
52
53 SUBCASE (
"test not Shorten the empty rel_hashmap") {
54
58 }
59
67
68 CHECK (
t->contains (1) ==
false);
69 CHECK (
t->contains (2) ==
false);
70 CHECK (
t->contains (4) ==
false);
72 }
73 }
74}
#define TM_CHECK_THROWS(statements)
◆ TEST_CASE() [4/7]
Definition at line 76 of file rel_hashmap_test.cpp.
76 {
78
79 SUBCASE (
"test merge the empty rel_hashmap") {
81 }
82
88
89 SUBCASE (
"test not merge the empty rel_hashmap") {
90
94 }
95
103
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);
109 }
110 }
111}
◆ TEST_CASE() [5/7]
Definition at line 113 of file rel_hashmap_test.cpp.
113 {
119
120 SUBCASE (
"test if all the same") {
124 t->find_changes (
hm2);
125
128 }
129
134 t->find_changes (
hm2);
135
138 }
139
140 SUBCASE (
"test if all different") {
144 t->find_changes (
hm2);
145
148 }
149}
◆ TEST_CASE() [6/7]
Definition at line 151 of file rel_hashmap_test.cpp.
151 {
157
158 SUBCASE (
"test if all the same") {
162 t->find_differences (
hm2);
163
166 }
167
173
174 SUBCASE (
"test if key different") {
175
176 SUBCASE (
"test if different from first, but the same as next") {
180 t->find_differences (
hm3);
181
186 }
187
188 SUBCASE (
"test if different from all the others") {
192 t->find_differences (
hm3);
193
198
202 t->find_differences (
hm4);
203
208 }
209 }
210}
◆ TEST_CASE() [7/7]
Definition at line 212 of file rel_hashmap_test.cpp.
212 {
218
221
222 SUBCASE (
"test change the same") {
227
230
235
238 }
239
240 SUBCASE (
"test change the different") {
245
250 }
251
252 SUBCASE (
"test change the next") {
258
263 }
264}