summaryrefslogtreecommitdiffstats
path: root/tests/dict.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dict.test')
-rw-r--r--tests/dict.test10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/dict.test b/tests/dict.test
index ce51633..e9848ae 100644
--- a/tests/dict.test
+++ b/tests/dict.test
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: dict.test,v 1.24 2008/03/16 17:00:44 dkf Exp $
+# RCS: @(#) $Id: dict.test,v 1.25 2008/05/07 09:23:39 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -414,6 +414,14 @@ test dict-13.9 {dict append command: write failure} {
catch {unset dictVar}
set result
} {1 {can't set "dictVar": variable is array}}
+test dict-13.10 {compiled dict append: crash case} {
+ apply {{} {
+ dict for {k v} {fred 1} {
+ dict append margs body fred \n
+ }
+ return ok
+ }}
+} ok
test dict-14.1 {dict for command: syntax} {
list [catch {dict for} msg] $msg