summaryrefslogtreecommitdiffstats
path: root/tests/append.test
diff options
context:
space:
mode:
authormsofer <msofer@noemail.net>2006-10-05 11:44:02 (GMT)
committermsofer <msofer@noemail.net>2006-10-05 11:44:02 (GMT)
commitb2689e9eb4d0176311c41ad86f53c7877b6f9892 (patch)
treeba4a92d67736e1f763c04e3a89d081a7b45c8c87 /tests/append.test
parent7dd46ec9a012e0d30b292a519074f42063d62fd5 (diff)
downloadtcl-b2689e9eb4d0176311c41ad86f53c7877b6f9892.zip
tcl-b2689e9eb4d0176311c41ad86f53c7877b6f9892.tar.gz
tcl-b2689e9eb4d0176311c41ad86f53c7877b6f9892.tar.bz2
* generic/tclVar.c (Tcl_LappendObjCmd):
* tests/append.test(4.21-22): fix for longstanding [Bug 1570718], lappending nothing to non-list. Reported by lvirden FossilOrigin-Name: 6631da8060da6f46e008ef470b6e270a8ab3ca61
Diffstat (limited to 'tests/append.test')
-rw-r--r--tests/append.test11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/append.test b/tests/append.test
index 58c0de7..312bc09 100644
--- a/tests/append.test
+++ b/tests/append.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: append.test,v 1.7 2001/07/03 23:39:24 hobbs Exp $
+# RCS: @(#) $Id: append.test,v 1.7.12.1 2006/10/05 11:44:04 msofer Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -143,6 +143,15 @@ test append-4.20 {lappend command} {
catch {unset x}
lappend x(0) abc
} {abc}
+unset x
+test append-4.21 {lappend command} {
+ set x \"
+ list [catch {lappend x} msg] $msg
+} {1 {unmatched open quote in list}}
+test append-4.22 {lappend command} {
+ set x \"
+ list [catch {lappend x abc} msg] $msg
+} {1 {unmatched open quote in list}}
proc check {var size} {
set l [llength $var]