diff options
author | dgp <dgp@users.sourceforge.net> | 2002-10-17 17:41:43 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2002-10-17 17:41:43 (GMT) |
commit | 15f0f765a5441cc7e8ad6b05238368f91ed0f8e9 (patch) | |
tree | 1b6b22feec969f74f4564818ec99d10a82d7076b /tests/var.test | |
parent | abe51934a84fa2eacec1b4f7707a407d91fbefa0 (diff) | |
download | tcl-15f0f765a5441cc7e8ad6b05238368f91ed0f8e9.zip tcl-15f0f765a5441cc7e8ad6b05238368f91ed0f8e9.tar.gz tcl-15f0f765a5441cc7e8ad6b05238368f91ed0f8e9.tar.bz2 |
* generic/tclVar.c: Fixed code that check for proper # of args to
* tests/var.test: [array names]. Added test. [Bug 624755]
Diffstat (limited to 'tests/var.test')
-rw-r--r-- | tests/var.test | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/var.test b/tests/var.test index 7955c93..93b44f2 100644 --- a/tests/var.test +++ b/tests/var.test @@ -14,11 +14,11 @@ # 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.19 2002/07/15 22:18:08 msofer Exp $ +# RCS: @(#) $Id: var.test,v 1.20 2002/10/17 17:41:45 dgp Exp $ # if {[lsearch [namespace children] ::tcltest] == -1} { - package require tcltest + package require tcltest 2.2 namespace import -force ::tcltest::* } @@ -666,6 +666,10 @@ test var-13.1 {Tcl_UnsetVar2, unset array with trace set on element} { set x "If you see this, it worked" } "If you see this, it worked" +test var-14.1 {array names syntax} -body { + array names foo bar baz snafu +} -returnCodes 1 -match glob -result * + catch {namespace delete ns} catch {unset arr} catch {unset v} |