summaryrefslogtreecommitdiffstats
path: root/tests/scan.test
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>1999-11-30 01:42:57 (GMT)
committerhobbs <hobbs@noemail.net>1999-11-30 01:42:57 (GMT)
commit154f668926a3c040d6e463219a615830a14d9654 (patch)
treed32f04afe68f725680837e17a2ec14bb9e264656 /tests/scan.test
parent4b317b2b26557ed368ddc34b1b3bd955700e1418 (diff)
downloadtcl-154f668926a3c040d6e463219a615830a14d9654.zip
tcl-154f668926a3c040d6e463219a615830a14d9654.tar.gz
tcl-154f668926a3c040d6e463219a615830a14d9654.tar.bz2
* tests/scan.test:
* generic/tclScan.c: fixed scan where %[..] didn't match anything and added test case [Bug: 3700] FossilOrigin-Name: 27ebd6ad86e7098995c815fc6832a0517ddfc46b
Diffstat (limited to 'tests/scan.test')
-rw-r--r--tests/scan.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/scan.test b/tests/scan.test
index 4957f9f..0d8d045 100644
--- a/tests/scan.test
+++ b/tests/scan.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: scan.test,v 1.8 1999/11/19 06:35:01 hobbs Exp $
+# RCS: @(#) $Id: scan.test,v 1.9 1999/11/30 01:43:00 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -42,6 +42,10 @@ test scan-1.7 {BuildCharSet, CharInSet} {
test scan-1.8 {BuildCharSet, CharInSet} {
list [scan def-abc {%[^c-a]} x] $x
} {1 def-}
+test scan-1.9 {BuildCharSet, CharInSet no match} {
+ catch {unset x}
+ list [scan {= f} {= %[TF]} x] [info exists x]
+} {0 0}
test scan-2.1 {ReleaseCharSet} {
list [scan abcde {%[abc]} x] $x