summaryrefslogtreecommitdiffstats
path: root/tests/string.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-04-22 16:29:57 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-04-22 16:29:57 (GMT)
commite3d20a2783044861949b7a0230410548b1c59982 (patch)
tree3eafbed9214dc65b3107a5a8200d660379db2c50 /tests/string.test
parent9925d5b2fcaa8ed663d1558fbf0b2227607f40e0 (diff)
downloadtcl-e3d20a2783044861949b7a0230410548b1c59982.zip
tcl-e3d20a2783044861949b7a0230410548b1c59982.tar.gz
tcl-e3d20a2783044861949b7a0230410548b1c59982.tar.bz2
* generic/tclCmdMZ.c: Corrected intrep-dependence of
* tests/string.test: [string is boolean] [Bug 1187123]
Diffstat (limited to 'tests/string.test')
-rw-r--r--tests/string.test11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/string.test b/tests/string.test
index a48df1c..71e94ec 100644
--- a/tests/string.test
+++ b/tests/string.test
@@ -12,7 +12,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.36.2.3 2004/08/30 18:15:25 dkf Exp $
+# RCS: @(#) $Id: string.test,v 1.36.2.4 2005/04/22 16:30:10 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -23,6 +23,8 @@ if {[lsearch [namespace children] ::tcltest] == -1} {
set ::tcltest::testConstraints(testobj) \
[expr {[info commands testobj] != {}}]
+set ::tcltest::testConstraints(testindexobj) \
+ [expr {[info commands testindexobj] != {}}]
test string-1.1 {error conditions} {
list [catch {string gorp a b} msg] $msg
@@ -1340,6 +1342,13 @@ test string-22.13 {string wordstart, unicode} {
string wordstart "\uc700\uc700 abc" 8
} 3
+test string-23.0 {string is boolean, Bug 1187123} testindexobj {
+ set x 5
+ catch {testindexobj $x foo bar soom}
+ string is boolean $x
+} 0
+
+
# cleanup
::tcltest::cleanupTests
return