Lines Matching refs:fTestData
636 fTestData.adoptInstead(new MonkeyTestData()); in setup()
665 __FILE__, __LINE__, msg, index, fRuleFileName, fTestData->fRandomSeed); \
666 if (fVerbose) { fTestData->dump(index); } \
675 fTestData->set(fRuleSet.getAlias(), fRandomGenerator, status); in runTest()
703 fTestData->clearActualBreaks(); in testForwards()
704 fBI->setText(fTestData->fString); in testForwards()
711 if (bk < 0 || bk > fTestData->fString.length()) { in testForwards()
715 fTestData->fActualBreaks.setCharAt(bk, 1); in testForwards()
724 fTestData->clearActualBreaks(); in testFollowing()
725 fBI->setText(fTestData->fString); in testFollowing()
727 for (int32_t i=-1 ; i<fTestData->fString.length(); ++i) { in testFollowing()
729 if (bk == BreakIterator::DONE && i == fTestData->fString.length()) { in testFollowing()
737 fTestData->fActualBreaks.setCharAt(bk, 1); in testFollowing()
752 fTestData->clearActualBreaks(); in testPrevious()
753 fBI->setText(fTestData->fString); in testPrevious()
760 if (bk < 0 || bk > fTestData->fString.length()) { in testPrevious()
764 fTestData->fActualBreaks.setCharAt(bk, 1); in testPrevious()
774 fTestData->clearActualBreaks(); in testPreceding()
775 fBI->setText(fTestData->fString); in testPreceding()
776 int32_t nextBreak = fTestData->fString.length()+1; in testPreceding()
777 for (int32_t i=fTestData->fString.length()+1 ; i>=0; --i) { in testPreceding()
787 if (i<fTestData->fString.length() && fTestData->fString.getChar32Start(i) < i) { in testPreceding()
791 if (fBI->preceding(i) != fBI->preceding(fTestData->fString.getChar32Start(i))) { in testPreceding()
797 fTestData->fActualBreaks.setCharAt(bk, 1); in testPreceding()
812 fTestData->clearActualBreaks(); in testIsBoundary()
813 fBI->setText(fTestData->fString); in testIsBoundary()
814 for (int i=fTestData->fString.length(); i>=0; --i) { in testIsBoundary()
816 fTestData->fActualBreaks.setCharAt(i, 1); in testIsBoundary()
826 fBI->setText(fTestData->fString); in testIsBoundaryRandom()
828 int stringLen = fTestData->fString.length(); in testIsBoundaryRandom()
831 if (fTestData->fExpectedBreaks.charAt(strIdx) != fBI->isBoundary(strIdx)) { in testIsBoundaryRandom()
833 __FILE__, __LINE__, strIdx, fRuleFileName, fTestData->fRandomSeed); in testIsBoundaryRandom()
835 fTestData->dump(i); in testIsBoundaryRandom()
850 for (int i=0; i<=fTestData->fString.length(); ++i) { in checkResults()
851 if (fTestData->fExpectedBreaks.charAt(i) != fTestData->fActualBreaks.charAt(i)) { in checkResults()
853 __FILE__, __LINE__, msg, i, fRuleFileName, fTestData->fRandomSeed); in checkResults()
855 fTestData->dump(i); in checkResults()
862 for (int i=fTestData->fString.length(); i>=0; i--) { in checkResults()
863 if (fTestData->fExpectedBreaks.charAt(i) != fTestData->fActualBreaks.charAt(i)) { in checkResults()
865 __FILE__, __LINE__, msg, i, fRuleFileName, fTestData->fRandomSeed); in checkResults()
867 fTestData->dump(i); in checkResults()