summaryrefslogtreecommitdiffstats
path: root/tests/var.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-09-25 19:51:26 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-09-25 19:51:26 (GMT)
commitbea1848e0fa6da616457fc0ce680644388a7e117 (patch)
treefe5b0bdc6afe2a9b4e95a7f54f044b1c13d09733 /tests/var.test
parent5115781cfdf86915300c18ff4ec8e51c09a30219 (diff)
downloadtcl-bea1848e0fa6da616457fc0ce680644388a7e117.zip
tcl-bea1848e0fa6da616457fc0ce680644388a7e117.tar.gz
tcl-bea1848e0fa6da616457fc0ce680644388a7e117.tar.bz2
TIP #323 IMPLEMENTATION (partial)
* doc/global.n: Revise [global] to accept zero variable names. * doc/variable.n: Revise [variable] likewise. * generic/tclVar.c: * tests/proc-old.test: * tests/var.test:
Diffstat (limited to 'tests/var.test')
-rw-r--r--tests/var.test14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/var.test b/tests/var.test
index c160cbd..698cd20 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.33 2008/09/25 19:26:40 dgp Exp $
+# RCS: @(#) $Id: var.test,v 1.34 2008/09/25 19:51:29 dgp Exp $
#
if {[lsearch [namespace children] ::tcltest] == -1} {
@@ -510,14 +510,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} {
+test var-7.16 {Tcl_VariableObjCmd, no args (TIP 323)} {
+ variable
+} {}
+test var-7.17 {Tcl_VariableObjCmd, no args (TIP 323)} {
namespace eval test_ns_var {
- list [catch {variable} msg] $msg
+ variable
}
-} {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}