@@ -304,15 +304,14 @@ public handler TestOffset()
304304 test "index" when the index of "x" in ".xx." is 2
305305end handler
306306
307- /* bug 14846
308307public handler TestOffsetAfter()
309308 -- Only test single-character needles for now
310- test "offset after (single, +ve)" when the offset of "x" after 1 in "x.xx." is 2
311- test "first offset after (single, +ve)" when the first offset of "x" after 1 in "x.xx." is 2
312- test "last offset after (single, +ve)" when the last offset of "x" after 1 in "x.xx." is 3
313- test "offset after (single, -ve)" when the offset of "x" after -5 in "x.xx." is 2
314- test "first offset after (single, -ve)" when the first offset of "x" after -5 in "x.xx." is 2
315- test "last offset after (single, -ve)" when the last offset of "x" after -5 in "x.xx." is 3
309+ test "offset after (single, +ve)" when the offset of "x" after 1 in "x.xx." is 3
310+ test "first offset after (single, +ve)" when the first offset of "x" after 1 in "x.xx." is 3
311+ test "last offset after (single, +ve)" when the last offset of "x" after 1 in "x.xx." is 4
312+ test "offset after (single, -ve)" when the offset of "x" after -5 in "x.xx." is 3
313+ test "first offset after (single, -ve)" when the first offset of "x" after -5 in "x.xx." is 3
314+ test "last offset after (single, -ve)" when the last offset of "x" after -5 in "x.xx." is 4
316315
317316 test "offset after (single, missing, +ve)" when the offset of "x" after 1 in "x.." is 0
318317 test "first offset after (single, missing, +ve)" when the first offset of "x" after 1 in "x.." is 0
@@ -329,7 +328,7 @@ public handler TestOffsetAfter()
329328 MCUnitTestHandlerThrows(TestLastOffsetAfter_SingleInvalidNegative, "last offset after (single, invalid -ve)")
330329
331330 -- For chars, "index" is synonymous with "offset"
332- test "index after" when the index of "x" after 2 in ".xx." is 1
331+ test "index after" when the index of "x" after 2 in ".xx." is 3
333332end handler
334333
335334handler TestOffsetAfter_SingleInvalidPositive()
@@ -373,7 +372,6 @@ public handler TestOffsetAfterZero()
373372 put the last offset of "x" in "x" into tNoAfter
374373 test "the last offset after (single, 0, same)" when the last offset of "x" after 0 in "x" is tNoAfter
375374end handler
376- */
377375
378376public handler TestBeginsWith()
379377 test "begins with" when "xx." begins with "xx"
0 commit comments