diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2013-04-29 09:31:53 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2013-04-29 09:31:53 (GMT) |
commit | 54202854852e902f7904ba4cca9cb280b2cfac58 (patch) | |
tree | 157750afa28177a9e7bdea789280ccf451698196 /tests/set-old.test | |
parent | 13c0e415213d47bc299c2273308979de39bbf634 (diff) | |
download | tcl-54202854852e902f7904ba4cca9cb280b2cfac58.zip tcl-54202854852e902f7904ba4cca9cb280b2cfac58.tar.gz tcl-54202854852e902f7904ba4cca9cb280b2cfac58.tar.bz2 |
Improve code generation for [array set] in a common case.
Diffstat (limited to 'tests/set-old.test')
-rw-r--r-- | tests/set-old.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/set-old.test b/tests/set-old.test index 52dc0ff..4c25ec5 100644 --- a/tests/set-old.test +++ b/tests/set-old.test @@ -678,6 +678,11 @@ test set-old-8.57 {array command, array get with trivial pattern} { set a(y) 2 array get a x } {x 1} +test set-old-8.58 {array command, array set with LVT and odd length literal} { + list [catch {apply {{} { + array set a {b c d} + }}} msg] $msg +} {1 {list must have an even number of elements}} test set-old-9.1 {ids for array enumeration} { catch {unset a} |