Lines Matching defs:ASSERT
36 #define ASSERT(x) REPORTER_ASSERT(reporter, x)
46 ASSERT(hash.capacity() == 0);
49 ASSERT(hash.capacity() == 4);
52 ASSERT(hash.capacity() == 4);
55 ASSERT(hash.capacity() == 4);
58 ASSERT(hash.capacity() == 8);
61 ASSERT(hash.capacity() == 8);
63 ASSERT(hash.count() == 5);
71 ASSERT(hash.count() == 0);
73 ASSERT(hash.count() == 1);
75 ASSERT(hash.count() == 2);
86 ASSERT(hash.countCollisions(1) == 0);
87 ASSERT(hash.countCollisions(5) == 0);
88 ASSERT(hash.countCollisions(9) == 0);
92 ASSERT(hash.countCollisions(1) == 0);
93 ASSERT(hash.countCollisions(5) == 1);
94 ASSERT(hash.countCollisions(9) == 1);
98 ASSERT(hash.countCollisions(1) == 0);
99 ASSERT(hash.countCollisions(5) == 1);
100 ASSERT(hash.countCollisions(9) == 2);
103 ASSERT(hash.find(1) != nullptr);
104 ASSERT(hash.find(1)->value == 2.0);
105 ASSERT(hash.find(5) != nullptr);
106 ASSERT(hash.find(5)->value == 3.0);
109 ASSERT(hash.find(2) == nullptr);
110 ASSERT(hash.find(9) == nullptr);
126 ASSERT(hash.find(1) == nullptr);
127 ASSERT(hash.find(5) != nullptr);
128 ASSERT(hash.find(5)->value == 3.0);
131 ASSERT(hash.countCollisions(9) == 0);
133 ASSERT(hash.find(9) != nullptr);
134 ASSERT(hash.find(9)->value == 4.0);
135 ASSERT(hash.find(5) != nullptr);
136 ASSERT(hash.find(5)->value == 3.0);
147 ASSERT(0 == count);
164 ASSERT(hash.find(key) != nullptr);
167 ASSERT(3 == count);
168 ASSERT(keys[0] != keys[1]);
169 ASSERT(keys[0] != keys[2]);
170 ASSERT(keys[1] != keys[2]);
179 ASSERT(key != 1);
180 ASSERT(hash.find(key) != nullptr);
183 ASSERT(2 == count);
184 ASSERT(keys[0] != keys[1]);
197 ASSERT(hash.capacity() == 0);
200 ASSERT(hash.count() == 2);
201 ASSERT(hash.capacity() == 4);
205 ASSERT(hash.capacity() == 0);
208 ASSERT(hash.capacity() == 4);
210 ASSERT(hash.count() == 0);
215 ASSERT(hash.count() == 2);
216 ASSERT(hash.capacity() == 4);
218 ASSERT(hash.find(1) != nullptr);
219 ASSERT(hash.find(2) != nullptr);