if (p != testString.length())
errln("ERROR: last() returned" + p + "instead of " + testString.length());
q = sentIter1.previous();
doTest(testString, p, q, 60, "This costs $20,00,000.");
p = q;
q = sentIter1.previous();
doTest(testString, p, q, 41, "How are you doing? ");
q = sentIter1.preceding(40);
doTest(testString, 40, q, 31, "Thankyou.");
q = sentIter1.preceding(25);
doTest(testString, 25, q, 20, "I'am ");