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) != NULL);
104 ASSERT(hash.find(1)->value == 2.0);
105 ASSERT(hash.find(5) != NULL);
106 ASSERT(hash.find(5)->value == 3.0);
109 ASSERT(hash.find(2) == NULL);
110 ASSERT(hash.find(9) == NULL);
126 ASSERT(hash.find(1) == NULL);
127 ASSERT(hash.find(5) != NULL);
128 ASSERT(hash.find(5)->value == 3.0);
131 ASSERT(hash.countCollisions(9) == 0);
133 ASSERT(hash.find(9) != NULL);
134 ASSERT(hash.find(9)->value == 4.0);
135 ASSERT(hash.find(5) != NULL);
136 ASSERT(hash.find(5)->value == 3.0);
147 ASSERT(0 == count);
164 ASSERT(hash.find(key) != NULL);
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) != NULL);
183 ASSERT(2 == count);
184 ASSERT(keys[0] != keys[1]);