diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2008-05-07 09:23:39 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2008-05-07 09:23:39 (GMT) |
commit | 19ad9a684ba90939b3e87ee3765331f7ae005e3d (patch) | |
tree | f5bfdac32a20bd65cbc05f24dda4d8d95fa0ac7e /tests | |
parent | 0c71b8fc46224d3797677aa37fcffe642bc13b72 (diff) | |
download | tcl-19ad9a684ba90939b3e87ee3765331f7ae005e3d.zip tcl-19ad9a684ba90939b3e87ee3765331f7ae005e3d.tar.gz tcl-19ad9a684ba90939b3e87ee3765331f7ae005e3d.tar.bz2 |
Detect problem case and prove that it's fixed.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dict.test | 10 |
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 |