Lines Matching refs:TEST_ASSERT

38 #define TEST_ASSERT(expr) {if ((expr) == FALSE) { \  macro
273 TEST_ASSERT(tstr == str1); in TestGetSetAdoptText()
285 TEST_ASSERT(wordIter1->getText() != charIter1->getText()); in TestGetSetAdoptText()
288 TEST_ASSERT(tstr == str2); in TestGetSetAdoptText()
291 TEST_ASSERT(tstr == str1); in TestGetSetAdoptText()
306 TEST_ASSERT(rb->preceding(2) == 0); in TestGetSetAdoptText()
307 TEST_ASSERT(rb->following(11) == BreakIterator::DONE); in TestGetSetAdoptText()
330 TEST_ASSERT(pos==0); in TestGetSetAdoptText()
332 TEST_ASSERT(pos==5); in TestGetSetAdoptText()
334 TEST_ASSERT(pos==6); in TestGetSetAdoptText()
336 TEST_ASSERT(pos==11); in TestGetSetAdoptText()
338 TEST_ASSERT(pos==UBRK_DONE); in TestGetSetAdoptText()
347 TEST_ASSERT(pos==0); in TestGetSetAdoptText()
349 TEST_ASSERT(pos==3); in TestGetSetAdoptText()
351 TEST_ASSERT(pos==4); in TestGetSetAdoptText()
354 TEST_ASSERT(pos==6); in TestGetSetAdoptText()
356 TEST_ASSERT(pos==4); in TestGetSetAdoptText()
358 TEST_ASSERT(pos==3); in TestGetSetAdoptText()
360 TEST_ASSERT(pos==0); in TestGetSetAdoptText()
362 TEST_ASSERT(pos==UBRK_DONE); in TestGetSetAdoptText()
690 TEST_ASSERT(t==1); in TestRuleStatus()
691 TEST_ASSERT(vec[0] == tag); in TestRuleStatus()
769 TEST_ASSERT(pos==1); in TestRuleStatusVec()
772 TEST_ASSERT(numStatuses == 2); in TestRuleStatusVec()
773 TEST_ASSERT(statusVals[0] == 100); in TestRuleStatusVec()
774 TEST_ASSERT(statusVals[1] == 300); in TestRuleStatusVec()
778 TEST_ASSERT(pos==2); in TestRuleStatusVec()
781 TEST_ASSERT(numStatuses == 2); in TestRuleStatusVec()
782 TEST_ASSERT(statusVals[0] == 200); in TestRuleStatusVec()
783 TEST_ASSERT(statusVals[1] == 300); in TestRuleStatusVec()
787 TEST_ASSERT(pos==3); in TestRuleStatusVec()
790 TEST_ASSERT(numStatuses == 2); in TestRuleStatusVec()
791 TEST_ASSERT(statusVals[0] == 200); in TestRuleStatusVec()
792 TEST_ASSERT(statusVals[1] == 300); in TestRuleStatusVec()
796 TEST_ASSERT(pos==4); in TestRuleStatusVec()
799 TEST_ASSERT(numStatuses == 1); in TestRuleStatusVec()
800 TEST_ASSERT(statusVals[0] == 300); in TestRuleStatusVec()
804 TEST_ASSERT(pos==5); in TestRuleStatusVec()
807 TEST_ASSERT(numStatuses == 2); in TestRuleStatusVec()
808 TEST_ASSERT(statusVals[0] == 400); in TestRuleStatusVec()
809 TEST_ASSERT(statusVals[1] == 500); in TestRuleStatusVec()
813 TEST_ASSERT(pos==6); in TestRuleStatusVec()
816 TEST_ASSERT(numStatuses == 1); in TestRuleStatusVec()
817 TEST_ASSERT(statusVals[0] == 0); in TestRuleStatusVec()
824 TEST_ASSERT(pos==1); in TestRuleStatusVec()
827 TEST_ASSERT(status == U_BUFFER_OVERFLOW_ERROR); in TestRuleStatusVec()
828 TEST_ASSERT(numStatuses == 2); in TestRuleStatusVec()
829 TEST_ASSERT(statusVals[0] == -1); in TestRuleStatusVec()
834 TEST_ASSERT(status == U_BUFFER_OVERFLOW_ERROR); in TestRuleStatusVec()
835 TEST_ASSERT(numStatuses == 2); in TestRuleStatusVec()
836 TEST_ASSERT(statusVals[0] == 100); in TestRuleStatusVec()
837 TEST_ASSERT(statusVals[1] == -1); in TestRuleStatusVec()
843 TEST_ASSERT(numStatuses == 2); in TestRuleStatusVec()
844 TEST_ASSERT(statusVals[0] == 100); in TestRuleStatusVec()
845 TEST_ASSERT(statusVals[1] == 300); in TestRuleStatusVec()
846 TEST_ASSERT(statusVals[2] == -1); in TestRuleStatusVec()
1113 TEST_ASSERT(*rb == *rb2); in TestCreateFromRBBIData()
1120 TEST_ASSERT(wordCounter == 6); in TestCreateFromRBBIData()
1124 TEST_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR); in TestCreateFromRBBIData()
1157 TEST_ASSERT(1 == bi->next()); in TestRefreshInputText()
1158 TEST_ASSERT(3 == bi->next()); in TestRefreshInputText()
1167 TEST_ASSERT(bi == returnedBI); in TestRefreshInputText()
1170 TEST_ASSERT(5 == bi->next()); in TestRefreshInputText()
1171 TEST_ASSERT(7 == bi->next()); in TestRefreshInputText()
1172 TEST_ASSERT(8 == bi->next()); in TestRefreshInputText()
1173 TEST_ASSERT(UBRK_DONE == bi->next()); in TestRefreshInputText()
1251 TEST_ASSERT(20 == filteredBI->next()); // Mr. in TestFilteredBreakIteratorBuilder()
1252 TEST_ASSERT(84 == filteredBI->next()); // recovered. in TestFilteredBreakIteratorBuilder()
1253 TEST_ASSERT(90 == filteredBI->next()); // Capt. in TestFilteredBreakIteratorBuilder()
1254 TEST_ASSERT(181 == filteredBI->next()); // Mr. in TestFilteredBreakIteratorBuilder()
1255 TEST_ASSERT(278 == filteredBI->next()); // charge. in TestFilteredBreakIteratorBuilder()
1268 TEST_ASSERT(TRUE == builder->suppressBreakAfter(ABBR_MR, status)); in TestFilteredBreakIteratorBuilder()
1269 TEST_ASSERT(FALSE == builder->suppressBreakAfter(ABBR_MR, status)); // already have it in TestFilteredBreakIteratorBuilder()
1270 TEST_ASSERT(TRUE == builder->unsuppressBreakAfter(ABBR_MR, status)); in TestFilteredBreakIteratorBuilder()
1271 TEST_ASSERT(FALSE == builder->unsuppressBreakAfter(ABBR_MR, status)); // already removed it in TestFilteredBreakIteratorBuilder()
1272 TEST_ASSERT(TRUE == builder->suppressBreakAfter(ABBR_MR, status)); in TestFilteredBreakIteratorBuilder()
1285 TEST_ASSERT(84 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1286 TEST_ASSERT(90 == filteredBI->next());// Capt. in TestFilteredBreakIteratorBuilder()
1287 TEST_ASSERT(278 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1301 TEST_ASSERT(TRUE == builder->suppressBreakAfter(ABBR_MR, status)); in TestFilteredBreakIteratorBuilder()
1302 TEST_ASSERT(TRUE == builder->suppressBreakAfter(ABBR_CAPT, status)); in TestFilteredBreakIteratorBuilder()
1315 TEST_ASSERT(84 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1316 TEST_ASSERT(278 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1334 TEST_ASSERT(TRUE == builder->unsuppressBreakAfter(ABBR_CAPT, status)); in TestFilteredBreakIteratorBuilder()
1343 TEST_ASSERT(84 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1344 TEST_ASSERT(90 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1345 TEST_ASSERT(278 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1370 TEST_ASSERT(84 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1371 TEST_ASSERT(278 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1398 TEST_ASSERT(16 == frenchBI->next()); in TestFilteredBreakIteratorBuilder()
1399 TEST_ASSERT(BreakIterator::DONE == frenchBI->next()); in TestFilteredBreakIteratorBuilder()
1404 TEST_ASSERT(10 == filteredBI->next()); // wrong for french, but filterBI is english. in TestFilteredBreakIteratorBuilder()
1405 TEST_ASSERT(16 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1406 TEST_ASSERT(BreakIterator::DONE == filteredBI->next()); in TestFilteredBreakIteratorBuilder()