Lines Matching refs:ASSERT
39 #define ASSERT(x) REPORTER_ASSERT(reporter, x) macro
49 ASSERT(hash.capacity() == 0); in DEF_TEST()
52 ASSERT(hash.capacity() == 4); in DEF_TEST()
55 ASSERT(hash.capacity() == 4); in DEF_TEST()
58 ASSERT(hash.capacity() == 4); in DEF_TEST()
61 ASSERT(hash.capacity() == 8); in DEF_TEST()
64 ASSERT(hash.capacity() == 8); in DEF_TEST()
66 ASSERT(hash.count() == 5); in DEF_TEST()
77 ASSERT(hash.capacity() == 0); in DEF_TEST()
80 ASSERT(hash.capacity() == 4); in DEF_TEST()
84 ASSERT(hash.capacity() == 4); in DEF_TEST()
88 ASSERT(hash.capacity() == 4); in DEF_TEST()
92 ASSERT(hash.capacity() == 4); in DEF_TEST()
96 ASSERT(hash.capacity() == 4); in DEF_TEST()
98 ASSERT(hash.count() == 1); in DEF_TEST()
106 ASSERT(hash.count() == 0); in DEF_TEST()
108 ASSERT(hash.count() == 1); in DEF_TEST()
110 ASSERT(hash.count() == 2); in DEF_TEST()
121 ASSERT(hash.countCollisions(1) == 0); in DEF_TEST()
122 ASSERT(hash.countCollisions(5) == 0); in DEF_TEST()
123 ASSERT(hash.countCollisions(9) == 0); in DEF_TEST()
127 ASSERT(hash.countCollisions(1) == 0); in DEF_TEST()
128 ASSERT(hash.countCollisions(5) == 1); in DEF_TEST()
129 ASSERT(hash.countCollisions(9) == 1); in DEF_TEST()
133 ASSERT(hash.countCollisions(1) == 0); in DEF_TEST()
134 ASSERT(hash.countCollisions(5) == 1); in DEF_TEST()
135 ASSERT(hash.countCollisions(9) == 2); in DEF_TEST()
138 ASSERT(hash.find(1) != nullptr); in DEF_TEST()
139 ASSERT(hash.find(1)->value == 2.0); in DEF_TEST()
140 ASSERT(hash.find(5) != nullptr); in DEF_TEST()
141 ASSERT(hash.find(5)->value == 3.0); in DEF_TEST()
144 ASSERT(hash.find(2) == nullptr); in DEF_TEST()
145 ASSERT(hash.find(9) == nullptr); in DEF_TEST()
161 ASSERT(hash.find(1) == nullptr); in DEF_TEST()
162 ASSERT(hash.find(5) != nullptr); in DEF_TEST()
163 ASSERT(hash.find(5)->value == 3.0); in DEF_TEST()
166 ASSERT(hash.countCollisions(9) == 0); in DEF_TEST()
168 ASSERT(hash.find(9) != nullptr); in DEF_TEST()
169 ASSERT(hash.find(9)->value == 4.0); in DEF_TEST()
170 ASSERT(hash.find(5) != nullptr); in DEF_TEST()
171 ASSERT(hash.find(5)->value == 3.0); in DEF_TEST()
182 ASSERT(0 == count); in TestIter()
199 ASSERT(hash.find(key) != nullptr); in TestIter()
202 ASSERT(3 == count); in TestIter()
203 ASSERT(keys[0] != keys[1]); in TestIter()
204 ASSERT(keys[0] != keys[2]); in TestIter()
205 ASSERT(keys[1] != keys[2]); in TestIter()
214 ASSERT(key != 1); in TestIter()
215 ASSERT(hash.find(key) != nullptr); in TestIter()
218 ASSERT(2 == count); in TestIter()
219 ASSERT(keys[0] != keys[1]); in TestIter()
232 ASSERT(hash.capacity() == 0); in TestResetOrRewind()
235 ASSERT(hash.count() == 2); in TestResetOrRewind()
236 ASSERT(hash.capacity() == 4); in TestResetOrRewind()
240 ASSERT(hash.capacity() == 0); in TestResetOrRewind()
243 ASSERT(hash.capacity() == 4); in TestResetOrRewind()
245 ASSERT(hash.count() == 0); in TestResetOrRewind()
250 ASSERT(hash.count() == 2); in TestResetOrRewind()
251 ASSERT(hash.capacity() == 4); in TestResetOrRewind()
253 ASSERT(hash.find(1) != nullptr); in TestResetOrRewind()
254 ASSERT(hash.find(2) != nullptr); in TestResetOrRewind()