diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2008-05-07 10:39:35 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2008-05-07 10:39:35 (GMT) |
commit | efabb7337895e091e1c7861d2ebb13e4f19e14ac (patch) | |
tree | a400d35e3eb099464aeb56b217bb71f4871f0abc /tests/dict.test | |
parent | db7aba954e794a1f87f6dd5fb4bff84d34ec2f2e (diff) | |
download | tcl-efabb7337895e091e1c7861d2ebb13e4f19e14ac.zip tcl-efabb7337895e091e1c7861d2ebb13e4f19e14ac.tar.gz tcl-efabb7337895e091e1c7861d2ebb13e4f19e14ac.tar.bz2 |
Fix off-by-one error that caused crashes. Backport from HEAD.
Diffstat (limited to 'tests/dict.test')
-rw-r--r-- | tests/dict.test | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/dict.test b/tests/dict.test index ce51633..cc861b4 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.24.2.1 2008/05/07 10:39:40 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -414,6 +414,9 @@ 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 command: crash case} { + apply {{} {dict append dictVar a o k}} +} {a ok} test dict-14.1 {dict for command: syntax} { list [catch {dict for} msg] $msg |