summaryrefslogtreecommitdiff
path: root/tests/cond.right
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cond.right')
-rw-r--r--tests/cond.right46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/cond.right b/tests/cond.right
index c7150e1b..b172a128 100644
--- a/tests/cond.right
+++ b/tests/cond.right
@@ -78,3 +78,49 @@ ok 9
ok 10
ok 11
ok 12
+argv[1] = <\^?>
+0
+1
+1
+0
+1
+1
+0
+1
+1
+[[ $'\001' =~ $'\001' ]] -> 0
+[[ $'\001' =~ $'\\\001' ]] -> 1
+[[ $'\001' =~ $'\\[\001]' ]] -> 1
+---
+[[ $'\a' =~ $'\a' ]] -> 0
+[[ $'\a' =~ $'\\\a' ]] -> 1
+[[ $'\a' =~ $'\\[\a]' ]] -> 1
+---
+[[ $'\177' =~ $'\177' ]] -> 0
+[[ $'\177' =~ $'\\\177' ]] -> 1
+[[ $'\177' =~ $'\\[\177]' ]] -> 1
+---
+0
+1
+1
+0
+1
+1
+0
+1
+1
+0
+1
+1
+1
+1
+argv[1] = <^A>
+argv[2] = <^A>
+ok 1
+ok 2
+ok 3
+ok 4
+ok 5
+ok 6
+ok 7
+ok 8