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/subst.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/subst.test')
-rw-r--r-- | tests/subst.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/subst.test b/tests/subst.test index 0ff69f8..0e46f02 100644 --- a/tests/subst.test +++ b/tests/subst.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: subst.test,v 1.12 2002/08/08 15:28:55 msofer Exp $ +# RCS: @(#) $Id: subst.test,v 1.13 2003/02/16 01:36:32 msofer Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -156,8 +156,8 @@ test subst-8.5 {return in a subst} { subst {foo [return {]}; bogus code] bar} } {foo ] bar} test subst-8.6 {return in a subst} { - subst {foo [return {x}; bogus code bar} -} {foo x} + list [catch {subst {foo [return {x}; bogus code bar}} msg] $msg +} {1 {missing close-bracket}} test subst-8.7 {return in a subst, parse error} { subst {foo [return {x} ; set a {}" ; stuff] bar} } {foo xset a {}" ; stuff] bar} |