summaryrefslogtreecommitdiffstats
path: root/tests/textIndex.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-29 14:53:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-29 14:53:00 (GMT)
commitb9c54e9e7e755df631f2b4ad860dc1ecc67279fd (patch)
tree4958942e758f5f4f0a8eaea61012fd596c5fd755 /tests/textIndex.test
parent503a19674de8e800cc0e79b6f893a68664235c89 (diff)
downloadtk-b9c54e9e7e755df631f2b4ad860dc1ecc67279fd.zip
tk-b9c54e9e7e755df631f2b4ad860dc1ecc67279fd.tar.gz
tk-b9c54e9e7e755df631f2b4ad860dc1ecc67279fd.tar.bz2
Use \x escape sequences in stead of \u when appropriate
Diffstat (limited to 'tests/textIndex.test')
-rw-r--r--tests/textIndex.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/textIndex.test b/tests/textIndex.test
index 99a70d6..656542c 100644
--- a/tests/textIndex.test
+++ b/tests/textIndex.test
@@ -871,7 +871,7 @@ test textIndex-21.9 {text index wordend} {
text_test_word worde "x.y" end-1
} 2
test textIndex-21.10 {text index wordend, unicode} {
- text_test_word wordend "xyz\u00c7de fg" 0
+ text_test_word wordend "xyz\xC7de fg" 0
} 6
test textIndex-21.11 {text index wordend, unicode} {
text_test_word wordend "xyz\uc700de fg" 0
@@ -905,7 +905,7 @@ test textIndex-22.10 {text index wordstart} {
text_test_word wordstart "one two three" end-5
} 7
test textIndex-22.11 {text index wordstart, unicode} {
- text_test_word wordstart "one tw\u00c7o three" 7
+ text_test_word wordstart "one tw\xC7o three" 7
} 4
test textIndex-22.12 {text index wordstart, unicode} {
text_test_word wordstart "ab\uc700\uc700 cdef ghi" 12
@@ -916,8 +916,8 @@ test textIndex-22.13 {text index wordstart, unicode} {
test textIndex-22.14 {text index wordstart, unicode, start index at internal segment start} {
catch {destroy .t}
text .t
- .t insert end "C'est du texte en fran\u00e7ais\n"
- .t insert end "\u042D\u0442\u043E\u0020\u0442\u0435\u043A\u0441\u0442\u0020\u043D\u0430\u0020\u0440\u0443\u0441\u0441\u043A\u043E\u043C"
+ .t insert end "C'est du texte en fran\xE7ais\n"
+ .t insert end "\u042D\u0442\u043E \u0442\u0435\u043A\u0441\u0442 \u043D\u0430 \u0440\u0443\u0441\u0441\u043A\u043E\u043C"
.t mark set insert 1.23
set res [.t index "1.23 wordstart"]
.t mark set insert 2.16