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