• Home
  • Raw
  • Download

Lines Matching refs:TEST_ASSERT

43 #define TEST_ASSERT(expr) UPRV_BLOCK_MACRO_BEGIN { \  macro
282 TEST_ASSERT(tstr == str1); in TestGetSetAdoptText()
294 TEST_ASSERT(wordIter1->getText() != charIter1->getText()); in TestGetSetAdoptText()
297 TEST_ASSERT(tstr == str2); in TestGetSetAdoptText()
300 TEST_ASSERT(tstr == str1); in TestGetSetAdoptText()
315 TEST_ASSERT(rb->preceding(2) == 0); in TestGetSetAdoptText()
316 TEST_ASSERT(rb->following(11) == BreakIterator::DONE); in TestGetSetAdoptText()
339 TEST_ASSERT(pos==0); in TestGetSetAdoptText()
341 TEST_ASSERT(pos==5); in TestGetSetAdoptText()
343 TEST_ASSERT(pos==6); in TestGetSetAdoptText()
345 TEST_ASSERT(pos==11); in TestGetSetAdoptText()
347 TEST_ASSERT(pos==UBRK_DONE); in TestGetSetAdoptText()
356 TEST_ASSERT(pos==0); in TestGetSetAdoptText()
358 TEST_ASSERT(pos==3); in TestGetSetAdoptText()
360 TEST_ASSERT(pos==4); in TestGetSetAdoptText()
363 TEST_ASSERT(pos==6); in TestGetSetAdoptText()
365 TEST_ASSERT(pos==4); in TestGetSetAdoptText()
367 TEST_ASSERT(pos==3); in TestGetSetAdoptText()
369 TEST_ASSERT(pos==0); in TestGetSetAdoptText()
371 TEST_ASSERT(pos==UBRK_DONE); in TestGetSetAdoptText()
699 TEST_ASSERT(t==1); in TestRuleStatus()
700 TEST_ASSERT(vec[0] == tag); in TestRuleStatus()
778 TEST_ASSERT(pos==1); in TestRuleStatusVec()
781 TEST_ASSERT(numStatuses == 2); in TestRuleStatusVec()
782 TEST_ASSERT(statusVals[0] == 100); in TestRuleStatusVec()
783 TEST_ASSERT(statusVals[1] == 300); in TestRuleStatusVec()
787 TEST_ASSERT(pos==2); 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==3); in TestRuleStatusVec()
799 TEST_ASSERT(numStatuses == 2); in TestRuleStatusVec()
800 TEST_ASSERT(statusVals[0] == 200); in TestRuleStatusVec()
801 TEST_ASSERT(statusVals[1] == 300); in TestRuleStatusVec()
805 TEST_ASSERT(pos==4); in TestRuleStatusVec()
808 TEST_ASSERT(numStatuses == 1); in TestRuleStatusVec()
809 TEST_ASSERT(statusVals[0] == 300); in TestRuleStatusVec()
813 TEST_ASSERT(pos==5); in TestRuleStatusVec()
816 TEST_ASSERT(numStatuses == 2); in TestRuleStatusVec()
817 TEST_ASSERT(statusVals[0] == 400); in TestRuleStatusVec()
818 TEST_ASSERT(statusVals[1] == 500); in TestRuleStatusVec()
822 TEST_ASSERT(pos==6); in TestRuleStatusVec()
825 TEST_ASSERT(numStatuses == 1); in TestRuleStatusVec()
826 TEST_ASSERT(statusVals[0] == 0); in TestRuleStatusVec()
833 TEST_ASSERT(pos==1); in TestRuleStatusVec()
836 TEST_ASSERT(status == U_BUFFER_OVERFLOW_ERROR); in TestRuleStatusVec()
837 TEST_ASSERT(numStatuses == 2); in TestRuleStatusVec()
838 TEST_ASSERT(statusVals[0] == -1); in TestRuleStatusVec()
843 TEST_ASSERT(status == U_BUFFER_OVERFLOW_ERROR); in TestRuleStatusVec()
844 TEST_ASSERT(numStatuses == 2); in TestRuleStatusVec()
845 TEST_ASSERT(statusVals[0] == 100); in TestRuleStatusVec()
846 TEST_ASSERT(statusVals[1] == -1); in TestRuleStatusVec()
852 TEST_ASSERT(numStatuses == 2); in TestRuleStatusVec()
853 TEST_ASSERT(statusVals[0] == 100); in TestRuleStatusVec()
854 TEST_ASSERT(statusVals[1] == 300); in TestRuleStatusVec()
855 TEST_ASSERT(statusVals[2] == -1); in TestRuleStatusVec()
1093 TEST_ASSERT(n == 2); in TestGetBinaryRules()
1098 TEST_ASSERT(ruleLength > 0); in TestGetBinaryRules()
1099 TEST_ASSERT(binRules != NULL); in TestGetBinaryRules()
1114 TEST_ASSERT(n == 2); in TestGetBinaryRules()
1144 TEST_ASSERT(1 == bi->next()); in TestRefreshInputText()
1145 TEST_ASSERT(3 == bi->next()); in TestRefreshInputText()
1154 TEST_ASSERT(bi == returnedBI); in TestRefreshInputText()
1157 TEST_ASSERT(5 == bi->next()); in TestRefreshInputText()
1158 TEST_ASSERT(7 == bi->next()); in TestRefreshInputText()
1159 TEST_ASSERT(8 == bi->next()); in TestRefreshInputText()
1160 TEST_ASSERT(UBRK_DONE == bi->next()); in TestRefreshInputText()
1238 TEST_ASSERT(20 == filteredBI->next()); // Mr. in TestFilteredBreakIteratorBuilder()
1239 TEST_ASSERT(84 == filteredBI->next()); // recovered. in TestFilteredBreakIteratorBuilder()
1240 TEST_ASSERT(90 == filteredBI->next()); // Capt. in TestFilteredBreakIteratorBuilder()
1241 TEST_ASSERT(181 == filteredBI->next()); // Mr. in TestFilteredBreakIteratorBuilder()
1242 TEST_ASSERT(278 == filteredBI->next()); // charge. in TestFilteredBreakIteratorBuilder()
1255 TEST_ASSERT(TRUE == builder->suppressBreakAfter(ABBR_MR, status)); in TestFilteredBreakIteratorBuilder()
1256 TEST_ASSERT(FALSE == builder->suppressBreakAfter(ABBR_MR, status)); // already have it in TestFilteredBreakIteratorBuilder()
1257 TEST_ASSERT(TRUE == builder->unsuppressBreakAfter(ABBR_MR, status)); in TestFilteredBreakIteratorBuilder()
1258 TEST_ASSERT(FALSE == builder->unsuppressBreakAfter(ABBR_MR, status)); // already removed it in TestFilteredBreakIteratorBuilder()
1259 TEST_ASSERT(TRUE == builder->suppressBreakAfter(ABBR_MR, status)); in TestFilteredBreakIteratorBuilder()
1272 TEST_ASSERT(84 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1273 TEST_ASSERT(90 == filteredBI->next());// Capt. in TestFilteredBreakIteratorBuilder()
1274 TEST_ASSERT(278 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1288 TEST_ASSERT(TRUE == builder->suppressBreakAfter(ABBR_MR, status)); in TestFilteredBreakIteratorBuilder()
1289 TEST_ASSERT(TRUE == builder->suppressBreakAfter(ABBR_CAPT, status)); in TestFilteredBreakIteratorBuilder()
1302 TEST_ASSERT(84 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1303 TEST_ASSERT(278 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1321 TEST_ASSERT(TRUE == builder->unsuppressBreakAfter(ABBR_CAPT, status)); in TestFilteredBreakIteratorBuilder()
1330 TEST_ASSERT(84 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1331 TEST_ASSERT(90 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1332 TEST_ASSERT(278 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1357 TEST_ASSERT(84 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1358 TEST_ASSERT(278 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1385 TEST_ASSERT(16 == frenchBI->next()); in TestFilteredBreakIteratorBuilder()
1386 TEST_ASSERT(BreakIterator::DONE == frenchBI->next()); in TestFilteredBreakIteratorBuilder()
1391 TEST_ASSERT(10 == filteredBI->next()); // wrong for french, but filterBI is english. in TestFilteredBreakIteratorBuilder()
1392 TEST_ASSERT(16 == filteredBI->next()); in TestFilteredBreakIteratorBuilder()
1393 TEST_ASSERT(BreakIterator::DONE == filteredBI->next()); in TestFilteredBreakIteratorBuilder()