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/parse.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/parse.test')
-rw-r--r-- | tests/parse.test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/parse.test b/tests/parse.test index 8dcf480..95330be 100644 --- a/tests/parse.test +++ b/tests/parse.test @@ -8,7 +8,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: parse.test,v 1.10 2003/02/11 18:27:37 hobbs Exp $ +# RCS: @(#) $Id: parse.test,v 1.11 2003/02/16 01:36:32 msofer Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -209,6 +209,10 @@ test parse-6.16 {ParseTokens procedure, backslash substitution} { test parse-6.17 {ParseTokens procedure, null characters} { testparser [bytestring "foo\0zz"] 0 } "- [bytestring foo\0zz] 1 word [bytestring foo\0zz] 3 text foo 0 text [bytestring \0] 0 text zz 0 {}" +test parse-6.18 {ParseTokens procedure, seek past numBytes for close-bracket} { + # Test for Bug 681841 + list [catch {testparser {[a]} 2} msg] $msg +} {1 {missing close-bracket}} test parse-7.1 {Tcl_FreeParse and ExpandTokenArray procedures} { testparser {$a(b) $a(b) $a(b) $a(b) $a(b) $a(b) $a(b) $a(b) $a(b) $a(b) $a(b) $a(b) $a(b) $a(b) $a(b) $a(b) } 0 |