diff options
author | ferrieux <ferrieux@users.sourceforge.net> | 2008-11-17 22:37:36 (GMT) |
---|---|---|
committer | ferrieux <ferrieux@users.sourceforge.net> | 2008-11-17 22:37:36 (GMT) |
commit | 8d22f1cfcc45e63e40c4af4d1489164f50826274 (patch) | |
tree | 0341a50229fa7bcb07c344f5c6748f7c5c844a8d /tests/parse.test | |
parent | dee5b7a791b4b64cdfe7ae6c9981aff8d85848d5 (diff) | |
download | tcl-8d22f1cfcc45e63e40c4af4d1489164f50826274.zip tcl-8d22f1cfcc45e63e40c4af4d1489164f50826274.tar.gz tcl-8d22f1cfcc45e63e40c4af4d1489164f50826274.tar.bz2 |
Fix [Bug 2251175]: missing backslash generic/tclCompCmds.c substitution on expanded literals.
Diffstat (limited to 'tests/parse.test')
-rw-r--r-- | tests/parse.test | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/parse.test b/tests/parse.test index 2220e22..404f0a8 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.34 2008/07/14 20:29:41 msofer Exp $ +# RCS: @(#) $Id: parse.test,v 1.35 2008/11/17 22:37:36 ferrieux Exp $ if {[catch {package require tcltest 2.0.2}]} { puts stderr "Skipping tests in [info script]. tcltest 2.0.2 required." @@ -229,6 +229,12 @@ test parse-5.26 {Tcl_ParseCommand: {*} parsing} testparser { test parse-5.27 {Tcl_ParseCommand: {*} parsing} testparser { testparser "{*}\\\n foo bar" 0 } {- \{*\}\\\n\ foo\ bar 3 simple {{*}} 1 text * 0 simple foo 1 text foo 0 simple bar 1 text bar 0 {}} +test parse-5.28 {Tcl_ParseCommand: {*} parsing, expanded literals} testparser { + testparser {{*}{a b}} 0 +} {- {{*}{a b}} 2 simple a 1 text a 0 simple b 1 text b 0 {}} +test parse-5.29 {Tcl_ParseCommand: {*} parsing, expanded literals, naked backslashes} testparser { + testparser {{*}{a \n b}} 0 +} {- {{*}{a \n b}} 3 simple a 1 text a 0 word {\n} 1 text-to-collapse {\n} 0 simple b 1 text b 0 {}} test parse-6.1 {ParseTokens procedure, empty word} testparser { testparser {""} 0 |