| OLD | NEW |
| (Empty) |
| 1 Tests find going both forward and backwards in small and large documents. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS testFind('abc', 'a', forward) is '0, 1' | |
| 7 PASS testFind('abc', 'b', forward) is '1, 2' | |
| 8 PASS testFind('abc', 'c', forward) is '2, 3' | |
| 9 PASS testFind('abc', 'a', backward) is '0, 1' | |
| 10 PASS testFind('abc', 'b', backward) is '1, 2' | |
| 11 PASS testFind('abc', 'c', backward) is '2, 3' | |
| 12 PASS testFind(tenThousandCharacters + 'abc' + tenThousandCharacters, 'a', forwar
d) is '10000, 10001' | |
| 13 PASS testFind(tenThousandCharacters + 'abc' + tenThousandCharacters, 'b', forwar
d) is '10001, 10002' | |
| 14 PASS testFind(tenThousandCharacters + 'abc' + tenThousandCharacters, 'c', forwar
d) is '10002, 10003' | |
| 15 PASS testFind(tenThousandCharacters + 'abc' + tenThousandCharacters, 'a', backwa
rd) is '10000, 10001' | |
| 16 PASS testFind(tenThousandCharacters + 'abc' + tenThousandCharacters, 'b', backwa
rd) is '10001, 10002' | |
| 17 PASS testFind(tenThousandCharacters + 'abc' + tenThousandCharacters, 'c', backwa
rd) is '10002, 10003' | |
| 18 PASS testFind('abcabc', 'a', forward) is '0, 1' | |
| 19 PASS testFind('abcabc', 'b', forward) is '1, 2' | |
| 20 PASS testFind('abcabc', 'c', forward) is '2, 3' | |
| 21 PASS testFind('abcabc', 'a', backward) is '3, 4' | |
| 22 PASS testFind('abcabc', 'b', backward) is '4, 5' | |
| 23 PASS testFind('abcabc', 'c', backward) is '5, 6' | |
| 24 PASS testFind(tenThousandCharacters + 'abcabc' + tenThousandCharacters, 'a', for
ward) is '10000, 10001' | |
| 25 PASS testFind(tenThousandCharacters + 'abcabc' + tenThousandCharacters, 'b', for
ward) is '10001, 10002' | |
| 26 PASS testFind(tenThousandCharacters + 'abcabc' + tenThousandCharacters, 'c', for
ward) is '10002, 10003' | |
| 27 PASS testFind(tenThousandCharacters + 'abcabc' + tenThousandCharacters, 'a', bac
kward) is '10003, 10004' | |
| 28 PASS testFind(tenThousandCharacters + 'abcabc' + tenThousandCharacters, 'b', bac
kward) is '10004, 10005' | |
| 29 PASS testFind(tenThousandCharacters + 'abcabc' + tenThousandCharacters, 'c', bac
kward) is '10005, 10006' | |
| 30 PASS successfullyParsed is true | |
| 31 | |
| 32 TEST COMPLETE | |
| 33 | |
| OLD | NEW |