diff options
author | msofer <msofer@noemail.net> | 2003-02-16 01:36:32 (GMT) |
---|---|---|
committer | msofer <msofer@noemail.net> | 2003-02-16 01:36:32 (GMT) |
commit | b1f6bab4461718d0a140b6c4d13b191f0828084b (patch) | |
tree | b9cac46b6b2fb5373a629e8d3758b7742b6a651c /tests/misc.test | |
parent | edd2ca5b5830525bb4042431b2cfccf7d8398cca (diff) | |
download | tcl-b1f6bab4461718d0a140b6c4d13b191f0828084b.zip tcl-b1f6bab4461718d0a140b6c4d13b191f0828084b.tar.gz tcl-b1f6bab4461718d0a140b6c4d13b191f0828084b.tar.bz2 |
Don Porter's fix for bad parsing of nested scripts [Bug 681841].
FossilOrigin-Name: 13c34f1df965be2a2dcdba3a6efa2406bac99e66
Diffstat (limited to 'tests/misc.test')
-rw-r--r-- | tests/misc.test | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/misc.test b/tests/misc.test index 12ef1bd..d6536b7 100644 --- a/tests/misc.test +++ b/tests/misc.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: misc.test,v 1.5 2000/04/10 17:19:02 ericm Exp $ +# RCS: @(#) $Id: misc.test,v 1.6 2003/02/16 01:36:32 msofer Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -51,13 +51,20 @@ test misc-1.2 {error in variable ref. in command in array reference} { # this is a bogus comment " set msg {} - list [catch tstProc msg] $msg $errorInfo -} {1 {missing close-brace for variable name} {missing close-brace for variable name + join [list [catch tstProc msg] $msg $errorInfo] \n +} [subst -novariables -nocommands {1 +missing close-brace for variable name +missing close-brace for variable name while compiling -"set tst $a([winfo name " +"set tst $a([winfo name $\{zz) + # this is a bogus comment + # this is a bogus comment + # this is a bogus comment + # this is a bogus comment + # this is a ..." (compiling body of proc "tstProc", line 4) invoked from within -"tstProc"}} +"tstProc"}] # cleanup ::tcltest::cleanupTests |