Lines Matching refs:TEST_ASSERT
64 #define TEST_ASSERT(expr) \ macro
113 TEST_ASSERT(a->elementAti(0) == 10); in UVector_API()
114 TEST_ASSERT(a->elementAti(1) == 15); in UVector_API()
115 TEST_ASSERT(a->elementAti(2) == 20); in UVector_API()
116 TEST_ASSERT(a->elementAti(3) == 30); in UVector_API()
117 TEST_ASSERT(a->indexOf((int32_t)3) == -1); in UVector_API()
118 TEST_ASSERT(a->indexOf((int32_t)15) == 1); in UVector_API()
119 TEST_ASSERT(a->indexOf((int32_t)15, 2) == -1); in UVector_API()
120 TEST_ASSERT(a->contains((int32_t)15)); in UVector_API()
121 TEST_ASSERT(!a->contains((int32_t)5)); in UVector_API()
145 TEST_ASSERT(a->empty()); in UStack_API()
147 TEST_ASSERT(!a->empty()); in UStack_API()
151 TEST_ASSERT(strcmp("cde", (const char *)a->peek()) == 0); in UStack_API()
152 TEST_ASSERT(a->search((void*)"cde") == 1); in UStack_API()
153 TEST_ASSERT(a->search((void*)"bcde") == 2); in UStack_API()
154 TEST_ASSERT(a->search((void*)"abc") == 3); in UStack_API()
155 TEST_ASSERT(strcmp("abc", (const char *)a->firstElement()) == 0); in UStack_API()
156 TEST_ASSERT(strcmp("cde", (const char *)a->lastElement()) == 0); in UStack_API()
157 TEST_ASSERT(strcmp("cde", (const char *)a->pop()) == 0); in UStack_API()
158 TEST_ASSERT(strcmp("bcde", (const char *)a->pop()) == 0); in UStack_API()
159 TEST_ASSERT(strcmp("abc", (const char *)a->pop()) == 0); in UStack_API()
173 TEST_ASSERT((a->puti("a", 1, status) == 0)); in Hashtable_API()
174 TEST_ASSERT((a->find("a") != NULL)); in Hashtable_API()
175 TEST_ASSERT((a->find("b") == NULL)); in Hashtable_API()
176 TEST_ASSERT((a->puti("b", 2, status) == 0)); in Hashtable_API()
177 TEST_ASSERT((a->find("b") != NULL)); in Hashtable_API()
178 TEST_ASSERT((a->removei("a") == 1)); in Hashtable_API()
179 TEST_ASSERT((a->find("a") == NULL)); in Hashtable_API()
183 TEST_ASSERT((!a->equals(b))); in Hashtable_API()
184 TEST_ASSERT((b.puti("b", 2, status) == 0)); in Hashtable_API()
185 TEST_ASSERT((!a->equals(b))); // Without a value comparator, this will be FALSE by default. in Hashtable_API()
187 TEST_ASSERT((!a->equals(b))); in Hashtable_API()
189 TEST_ASSERT((a->equals(b))); in Hashtable_API()
190 TEST_ASSERT((a->equals(*a))); // This better be reflexive. in Hashtable_API()
193 TEST_ASSERT((a->puti("a", 1, status) == 0)); in Hashtable_API()
194 TEST_ASSERT((a->find("a") != NULL)); in Hashtable_API()
196 TEST_ASSERT((a->find("a") == NULL)); in Hashtable_API()