summaryrefslogtreecommitdiffstats
path: root/tests/appendComp.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-09-08 12:43:49 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-09-08 12:43:49 (GMT)
commitd2c080833061d96d6d76d4d3873e15796cdd815c (patch)
tree68cbdfa02b9e8e347fddbd0df773613cf75f45d4 /tests/appendComp.test
parente36a7a2e7fa1f1afb57f5e6b06917180e429cd72 (diff)
parent14f15edc7322b01a23ee0ae2201d96ae38212d09 (diff)
downloadtcl-d2c080833061d96d6d76d4d3873e15796cdd815c.zip
tcl-d2c080833061d96d6d76d4d3873e15796cdd815c.tar.gz
tcl-d2c080833061d96d6d76d4d3873e15796cdd815c.tar.bz2
merge 8.6.4
Diffstat (limited to 'tests/appendComp.test')
-rw-r--r--tests/appendComp.test21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/appendComp.test b/tests/appendComp.test
index f85c3ba..bbf5f9c 100644
--- a/tests/appendComp.test
+++ b/tests/appendComp.test
@@ -438,6 +438,27 @@ test appendComp-9.3 {bug 3057639, append direct eval, read trace on non-existing
} -cleanup {
unset -nocomplain ::env(__DUMMY__)
} -result {0 {new value}}
+
+test appendComp-10.1 {Bug 214cc0eb22: lappend with no values} {
+ apply {lst {
+ lappend lst
+ }} "# 1 2 3"
+} "# 1 2 3"
+test appendComp-10.2 {Bug 214cc0eb22: lappend with no values} -body {
+ apply {lst {
+ lappend lst
+ }} "1 \{ 2"
+} -returnCodes error -result {unmatched open brace in list}
+test appendComp-10.3 {Bug 214cc0eb22: expanded lappend with no values} {
+ apply {lst {
+ lappend lst {*}[list]
+ }} "# 1 2 3"
+} "# 1 2 3"
+test appendComp-10.4 {Bug 214cc0eb22: expanded lappend with no values} -body {
+ apply {lst {
+ lappend lst {*}[list]
+ }} "1 \{ 2"
+} -returnCodes error -result {unmatched open brace in list}
catch {unset i x result y}
catch {rename foo ""}