diff options
author | hobbs <hobbs> | 2001-07-04 00:55:08 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2001-07-04 00:55:08 (GMT) |
commit | 893bf2d7b57d2d24829763e5e74770369238efa4 (patch) | |
tree | c07a204a0f8c3841fd154538549ae1e564c551f7 /tests | |
parent | 0962ee532bf11303e62d73a81dcc1d8aa8ef7377 (diff) | |
download | tcl-893bf2d7b57d2d24829763e5e74770369238efa4.zip tcl-893bf2d7b57d2d24829763e5e74770369238efa4.tar.gz tcl-893bf2d7b57d2d24829763e5e74770369238efa4.tar.bz2 |
* tests/var.test:
* generic/tclVar.c (Tcl_VariableObjCmd): added patch to check for
number of args. [Patch #426038]
Diffstat (limited to 'tests')
-rw-r--r-- | tests/var.test | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/var.test b/tests/var.test index faafd3b..cb2d093 100644 --- a/tests/var.test +++ b/tests/var.test @@ -14,7 +14,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: var.test,v 1.16 2000/11/17 09:55:42 dkf Exp $ +# RCS: @(#) $Id: var.test,v 1.17 2001/07/04 00:55:08 hobbs Exp $ # if {[lsearch [namespace children] ::tcltest] == -1} { @@ -476,6 +476,14 @@ test var-7.15 {Tcl_VariableObjCmd, array element parameter} { } res set res } "can't define \"arrayvar(1)\": name refers to an element in an array" +test var-7.16 {Tcl_VariableObjCmd, no args} { + list [catch {variable} msg] $msg +} {1 {wrong # args: should be "variable ?name value...? name ?value?"}} +test var-7.17 {Tcl_VariableObjCmd, no args} { + namespace eval test_ns_var { + list [catch {variable} msg] $msg + } +} {1 {wrong # args: should be "variable ?name value...? name ?value?"}} test var-8.1 {TclDeleteVars, "unset" traces are called with fully-qualified var names} { catch {namespace delete test_ns_var} |