• Home
  • Raw
  • Download

Lines Matching refs:TEST_ASSERT

77 #define TEST_ASSERT(expr) {if ((expr)==FALSE) {errln("%s:%d: Test failure \n", __FILE__, __LINE__);…  macro
94 TEST_ASSERT(28 == lc); // 26 letters plus two under/overflow labels. in APITest()
104 TEST_ASSERT(coll != NULL); in APITest()
107 TEST_ASSERT(coll == &index->getCollator()); in APITest()
137 TEST_ASSERT(&aip == index); in APITest()
141 TEST_ASSERT(35 < lc); // Japanese should add a bunch. Don't rely on the exact value. in APITest()
152 TEST_ASSERT(*germanCol == indexCol); in APITest()
157 TEST_ASSERT(ELLIPSIS == s); in APITest()
159 TEST_ASSERT(ELLIPSIS == s); in APITest()
161 TEST_ASSERT(ELLIPSIS == s); in APITest()
165 TEST_ASSERT(UNICODE_STRING_SIMPLE("U") == s); in APITest()
167 TEST_ASSERT(UNICODE_STRING_SIMPLE("O") == s); in APITest()
169 TEST_ASSERT(UNICODE_STRING_SIMPLE("I") == s); in APITest()
200 TEST_ASSERT(A_STR == label2); in APITest()
204 TEST_ASSERT(b); in APITest()
206 TEST_ASSERT(adam == itemName); in APITest()
209 TEST_ASSERT(itemContext == this); in APITest()
222 TEST_ASSERT(FALSE); // No items have been added. in APITest()
242 TEST_ASSERT(itemCount == 4); in APITest()
244 TEST_ASSERT(index->nextBucket(status) == FALSE); in APITest()
247 TEST_ASSERT(index->nextBucket(status) == TRUE); in APITest()
255 TEST_ASSERT(FALSE); // No items have been added. in APITest()
273 TEST_ASSERT(type == U_ALPHAINDEX_UNDERFLOW); in APITest()
274 TEST_ASSERT(label == adam); in APITest()
277 TEST_ASSERT(type == U_ALPHAINDEX_NORMAL); in APITest()
279 TEST_ASSERT(expectedLabel == label); in APITest()
281 TEST_ASSERT(type == U_ALPHAINDEX_OVERFLOW); in APITest()
282 TEST_ASSERT(label == charlie); in APITest()
284 TEST_ASSERT(FALSE); in APITest()
287 TEST_ASSERT(i==28); in APITest()
297 TEST_ASSERT(n == 1); /* Label #0 is underflow, 1 is A, etc. */ in APITest()
299 TEST_ASSERT(n == 2); in APITest()
301 TEST_ASSERT(n == 27); // Overflow label in APITest()
303 TEST_ASSERT(n == 26); in APITest()
307 TEST_ASSERT(n == i); in APITest()
309 TEST_ASSERT(n == i); in APITest()
311 TEST_ASSERT(i == 28); in APITest()
370 TEST_ASSERT(lc == immIndex->getBucketCount()); in ManyLocalesTest()
378 TEST_ASSERT(label.length()>0); in ManyLocalesTest()
382 TEST_ASSERT(bucket != NULL); in ManyLocalesTest()
386 TEST_ASSERT(&label != &bucket->getLabel()); // not the same pointers in ManyLocalesTest()
388 TEST_ASSERT(labelType == bucket->getLabelType()); in ManyLocalesTest()
393 TEST_ASSERT(immIndex->getBucketCount() == bucketIndex); in ManyLocalesTest()
394 TEST_ASSERT(immIndex->getBucket(-1) == NULL); in ManyLocalesTest()
395 TEST_ASSERT(immIndex->getBucket(bucketIndex) == NULL); in ManyLocalesTest()
446 TEST_ASSERT(nameCount == aindex.getRecordCount(status)); in HackPinyinTest()
476 TEST_ASSERT(bucketCount > 25); in HackPinyinTest()
477 TEST_ASSERT(filledBucketCount > 15); in HackPinyinTest()
663 TEST_ASSERT(index.nextBucket(status)); in TestNoLabels()