summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2020-08-28 15:02:25 (GMT)
committersebres <sebres@users.sourceforge.net>2020-08-28 15:02:25 (GMT)
commit30c146de547598e2046e7470f79645a0e5c164a5 (patch)
treea1e4ada8fee694745da0e059f2c9895c1f659342 /tests
parent6149b214e82b319f46e5e41a30cc5b4d0db7b37e (diff)
parentbe42098b827423520078e2cb5150275a3a8540e2 (diff)
downloadtcl-30c146de547598e2046e7470f79645a0e5c164a5.zip
tcl-30c146de547598e2046e7470f79645a0e5c164a5.tar.gz
tcl-30c146de547598e2046e7470f79645a0e5c164a5.tar.bz2
merge 8.5
Diffstat (limited to 'tests')
-rw-r--r--tests/regexp.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/regexp.test b/tests/regexp.test
index 3ed0623..6be902b 100644
--- a/tests/regexp.test
+++ b/tests/regexp.test
@@ -178,10 +178,17 @@ test regexp-3.7 {getting substrings back from regexp} {
set foo 1; set f2 1; set f3 1; set f4 1
list [regexp -indices (a)(b)?(c) xacy foo f2 f3 f4] $foo $f2 $f3 $f4
} {1 {1 2} {1 1} {-1 -1} {2 2}}
-test regexp-3.8 {-indices by multi-byte utf-8} {
+test regexp-3.8a {-indices by multi-byte utf-8} {
regexp -inline -indices {(\w+)-(\w+)} \
"gr\u00FC\u00DF-\u043F\u0440\u0438\u0432\u0435\u0442"
} {{0 10} {0 3} {5 10}}
+test regexp-3.8b {-indices by multi-byte utf-8, from -start position} {
+ list\
+ [regexp -inline -indices -start 3 {(\w+)-(\w+)} \
+ "gr\u00FC\u00DF-\u043F\u0440\u0438\u0432\u0435\u0442"] \
+ [regexp -inline -indices -start 4 {(\w+)-(\w+)} \
+ "gr\u00FC\u00DF-\u043F\u0440\u0438\u0432\u0435\u0442"]
+} {{{3 10} {3 3} {5 10}} {}}
test regexp-4.1 {-nocase option to regexp} {
regexp -nocase foo abcFOo