diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2014-12-03 23:17:16 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2014-12-03 23:17:16 (GMT) |
commit | 8694763c10584bbaed0097318fcaa55a7b86425a (patch) | |
tree | e08948ee7f431d6bd49ae4a3034133c8c12bd562 /tests/compile.test | |
parent | 730a9a132cbd0a3b3ff36b842957b1cda50ed3a6 (diff) | |
download | tcl-8694763c10584bbaed0097318fcaa55a7b86425a.zip tcl-8694763c10584bbaed0097318fcaa55a7b86425a.tar.gz tcl-8694763c10584bbaed0097318fcaa55a7b86425a.tar.bz2 |
test and fix (thx dgp)
Diffstat (limited to 'tests/compile.test')
-rw-r--r-- | tests/compile.test | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/compile.test b/tests/compile.test index 8150622..45d69e9 100644 --- a/tests/compile.test +++ b/tests/compile.test @@ -464,11 +464,12 @@ test compile-14.1 {testing errors in element name; segfault?} {} { } {{wrong # args: should be "error message ?errorInfo? ?errorCode?"} {can't read "abba": no such variable}} test compile-14.2 {testing element name "$"} -body { - unset a + unset -nocomplain a set a() 1 - set a($) 2 - list [set a()] [set a($)] [unset a(); lindex [array names a] 0] -} -cleanup {unset a} -result {1 2 $} + set a(1) 2 + set a($) 3 + list [set a()] [set a(1)] [set a($)] [unset a(); lindex [array names a] 0] +} -cleanup {unset a} -result [list 1 2 3 {$}] # Tests compile-15.* cover Tcl Bug 633204 |