diff options
author | hobbs <hobbs@noemail.net> | 1999-10-29 03:04:36 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 1999-10-29 03:04:36 (GMT) |
commit | ca5b7b89fa94bedcd6681c3c969c3ae19d2fe0da (patch) | |
tree | 6929d9fd391e216fcd9d1b0da40f6f27b338096d /tests/set.test | |
parent | d837ba0595f3f8ec5a276bb494fd3f03027d0860 (diff) | |
download | tcl-ca5b7b89fa94bedcd6681c3c969c3ae19d2fe0da.zip tcl-ca5b7b89fa94bedcd6681c3c969c3ae19d2fe0da.tar.gz tcl-ca5b7b89fa94bedcd6681c3c969c3ae19d2fe0da.tar.bz2 |
added tests for related fixes
FossilOrigin-Name: 19dabe4e595ae859a736d47968514ca495bbe872
Diffstat (limited to 'tests/set.test')
-rw-r--r-- | tests/set.test | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/tests/set.test b/tests/set.test index 736e0e5..522b2a9 100644 --- a/tests/set.test +++ b/tests/set.test @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: set.test,v 1.5 1999/06/26 20:55:12 rjohnson Exp $ +# RCS: @(#) $Id: set.test,v 1.6 1999/10/29 03:04:37 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -200,6 +200,12 @@ test set-1.24 {TclCompileSetCmd: too many arguments} { set msg } {wrong # args: should be "set varName ?newValue?"} +test set-1.25 {TclCompileSetCmd: var is array, braced (no subs)} { + # This was a known error in 8.1a* - 8.2.1 + catch {unset array} + set {array($foo)} 5 +} 5 + test set-2.1 {set command: runtime error, bad variable name} { list [catch {set {"foo}} msg] $msg $errorInfo } {1 {can't read ""foo": no such variable} {can't read ""foo": no such variable @@ -486,15 +492,3 @@ catch {unset x} catch {unset z} ::tcltest::cleanupTests return - - - - - - - - - - - - |