summaryrefslogtreecommitdiffstats
path: root/tests/string.test
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2001-03-12 15:58:00 (GMT)
committerdkf <dkf@noemail.net>2001-03-12 15:58:00 (GMT)
commitf868185d0414a0dd70bfea37e0e6cbe4a7f12482 (patch)
tree8a0ee18f44cc78cab0812ae1ebb54393475b6771 /tests/string.test
parente27ab9aeaa3126269a6669538f4975c9bb0e7b9d (diff)
downloadtcl-f868185d0414a0dd70bfea37e0e6cbe4a7f12482.zip
tcl-f868185d0414a0dd70bfea37e0e6cbe4a7f12482.tar.gz
tcl-f868185d0414a0dd70bfea37e0e6cbe4a7f12482.tar.bz2
Fixed some string test numberings and added a test.
FossilOrigin-Name: 146f9d6de08cda3ed3aa92fb3f86e8c88043c9cb
Diffstat (limited to 'tests/string.test')
-rw-r--r--tests/string.test10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/string.test b/tests/string.test
index 9d22046..d725cc4 100644
--- a/tests/string.test
+++ b/tests/string.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: string.test,v 1.26 2000/09/06 18:35:13 hobbs Exp $
+# RCS: @(#) $Id: string.test,v 1.27 2001/03/12 15:58:01 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -837,12 +837,16 @@ test string-11.46 {string match, *special case} {
test string-11.47 {string match, *special case} {
string match "*\\*" "*"
} 1
-test string-11.47 {string match, *special case} {
+test string-11.48 {string match, *special case} {
string match "*\\*" "*abc"
} 0
-test string-11.48 {string match, *special case} {
+test string-11.49 {string match, *special case} {
string match "?\\*" "a*"
} 1
+test string-11.50 {string match, *special case} {
+ string match "\\" "\\"
+} 0
+
test string-12.1 {string range} {
list [catch {string range} msg] $msg