From 17e4c2107a153a4fd32578599709cfacfe2d9b01 Mon Sep 17 00:00:00 2001 From: fvogel Date: Sat, 3 Feb 2024 17:46:20 +0000 Subject: Expand coverage of textIndex-22.16 --- tests/textIndex.test | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/textIndex.test b/tests/textIndex.test index 8fcba28..558a9aa 100644 --- a/tests/textIndex.test +++ b/tests/textIndex.test @@ -945,10 +945,12 @@ test textIndex-22.16 {text index wordstart, bug [57b821d2db]} { catch {destroy .t} text .t .t insert 1.0 " 123 5 789012 LINE-1\n\n 123 5 789000 LINE-3\n\n0123 5 789012 LINE-5" - set res [.t index "5.0 wordstart"] + set res [.t index "1.1 wordstart"] + lappend res [.t index "5.0 wordstart"] .t mark set insert 1.1 lappend res [.t index "insert wordstart"] -} {5.0 1.1} + lappend res [.t index "5.1 wordstart"] +} {1.1 5.0 1.1 5.0} test textIndex-23.1 {text paragraph start} { pack [text .t2] -- cgit v0.12