Go to the source code of this file.
◆ TEST_CASE() [1/5]
Definition at line 5 of file iterator_test.cpp.
5 {
6
11 }
12
13 SUBCASE (
"test empty hashmap") {
17 }
18}
The list class represents a linked list.
iterator< T > iterate(hashmap< T, U > h)
Generates an iterator for a container of type hashmap<T, U>.
◆ TEST_CASE() [2/5]
Definition at line 20 of file iterator_test.cpp.
20 {
25 set1->insert (
string (
"string1"));
26 set1->insert (
string (
"string2"));
27 SUBCASE (
"Test iterator busy") {
32 }
33 SUBCASE (
"Test iterator remains") {
38 }
39 SUBCASE (
"Test iterator next") {
44 }
45}
◆ TEST_CASE() [3/5]
Definition at line 47 of file iterator_test.cpp.
47 {
49 h (1) = 1;
50 h (2) = 4;
51 h (3) = 6;
56 }
57 CHECK_EQ (a ==
string (
"123"),
true);
58}
string as_string(int16_t i)
◆ TEST_CASE() [4/5]
Definition at line 60 of file iterator_test.cpp.
60 {
63 h (1)= 1;
64 h (2)= 4;
65 h (3)= 6;
66 string a;
69 }
71 };
74 string a;
77 }
79 };
80}
void string_eq(string left, string right)
◆ TEST_CASE() [5/5]
Definition at line 95 of file iterator_test.cpp.
95 {
98 h->insert (1);
99 h->insert (2);
100 h->insert (3);
101 string a;
104 }
106 };
109 string a;
112 }
114 }
115}