summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2024-02-03 17:46:20 (GMT)
committerfvogel <fvogelnew1@free.fr>2024-02-03 17:46:20 (GMT)
commit17e4c2107a153a4fd32578599709cfacfe2d9b01 (patch)
tree8029833acb3d987ffa6eb6913644af81f496099c /tests
parent44e42539f1e18a0cd43eeb0ae70083037bdd3f1e (diff)
downloadtk-17e4c2107a153a4fd32578599709cfacfe2d9b01.zip
tk-17e4c2107a153a4fd32578599709cfacfe2d9b01.tar.gz
tk-17e4c2107a153a4fd32578599709cfacfe2d9b01.tar.bz2
Expand coverage of textIndex-22.16
Diffstat (limited to 'tests')
-rw-r--r--tests/textIndex.test6
1 files 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]