Home | History | Annotate | Download | only in intltest

Lines Matching full:test_assert

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