diff options
Diffstat (limited to 'tcl/tests/misc.test')
-rw-r--r-- | tcl/tests/misc.test | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/tcl/tests/misc.test b/tcl/tests/misc.test index a18f3940b81..7ba5f9736da 100644 --- a/tcl/tests/misc.test +++ b/tcl/tests/misc.test @@ -7,13 +7,17 @@ # # Copyright (c) 1992-1993 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. +# Copyright (c) 1998-1999 by Scriptics Corporation. # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # # RCS: @(#) $Id$ -if {[string compare test [info procs test]] == 1} then {source defs} +if {[lsearch [namespace children] ::tcltest] == -1} { + package require tcltest + namespace import -force ::tcltest::* +} test misc-1.1 {error in variable ref. in command in array reference} { proc tstProc {} { @@ -48,4 +52,26 @@ test misc-1.2 {error in variable ref. in command in array reference} { " set msg {} list [catch tstProc msg] $msg $errorInfo -} {1 {missing close-bracket or close-brace} missing\ close-bracket\ or\ close-brace\n\ \ \ \ while\ compiling\n\"set\ tst\ \$a(\[winfo\ name\ \$\{zz)\"\n\ \ \ \ (compiling\ body\ of\ proc\ \"tstProc\",\ line\ 4)\n\ \ \ \ invoked\ from\ within\n\"tstProc\"} +} {1 {missing close-brace for variable name} {missing close-brace for variable name + while compiling +"set tst $a([winfo name " + (compiling body of proc "tstProc", line 4) + invoked from within +"tstProc"}} + +# cleanup +::tcltest::cleanupTests +return + + + + + + + + + + + + + |