summaryrefslogtreecommitdiffstats
path: root/tests/regexpComp.test
diff options
context:
space:
mode:
authorhobbs <hobbs>2008-08-21 23:42:22 (GMT)
committerhobbs <hobbs>2008-08-21 23:42:22 (GMT)
commit6b9d9ed01ec1bd26181bacf43086670a6c545242 (patch)
tree6335082b878c14b1a71639837969408d8b9c7870 /tests/regexpComp.test
parentd09db69303ac08c93a77ac8c78b40e96f7154422 (diff)
downloadtcl-6b9d9ed01ec1bd26181bacf43086670a6c545242.zip
tcl-6b9d9ed01ec1bd26181bacf43086670a6c545242.tar.gz
tcl-6b9d9ed01ec1bd26181bacf43086670a6c545242.tar.bz2
really fix translation to escape glob-sensitive chars
Diffstat (limited to 'tests/regexpComp.test')
-rw-r--r--tests/regexpComp.test21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/regexpComp.test b/tests/regexpComp.test
index f38062d..0fbed97 100644
--- a/tests/regexpComp.test
+++ b/tests/regexpComp.test
@@ -105,6 +105,27 @@ test regexp-1.13 {regexp ***= metasyntax} {
regexp -- $re $string
}
} 0
+test regexp-1.14 {regexp ***= metasyntax} {
+ evalInProc {
+ set string "aeiou"
+ set re "***=e*o"
+ regexp -- $re $string
+ }
+} 0
+test regexp-1.15 {regexp ***= metasyntax} {
+ evalInProc {
+ set string "ae*ou"
+ set re "***=e*o"
+ regexp -- $re $string
+ }
+} 1
+test regexp-1.16 {regexp ***= metasyntax} {
+ evalInProc {
+ set string {ae*[o]?ua}
+ set re {***=e*[o]?u}
+ regexp -- $re $string
+ }
+} 1
test regexpComp-2.1 {getting substrings back from regexp} {
evalInProc {