summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorericm <ericm>2000-08-21 01:37:51 (GMT)
committerericm <ericm>2000-08-21 01:37:51 (GMT)
commit4c6c508ce30845f9e15d7d5f1db2821a92c7a157 (patch)
treefd4936346c5f2cd37275fa1a3958dd1742c575b2 /tests
parent42e89511879453c75aa0af13642a24b172b52eef (diff)
downloadtcl-4c6c508ce30845f9e15d7d5f1db2821a92c7a157.zip
tcl-4c6c508ce30845f9e15d7d5f1db2821a92c7a157.tar.gz
tcl-4c6c508ce30845f9e15d7d5f1db2821a92c7a157.tar.bz2
Added check for non-arrays for [array statistics].
Diffstat (limited to 'tests')
-rw-r--r--tests/set-old.test7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/set-old.test b/tests/set-old.test
index a4c061a..6a63200 100644
--- a/tests/set-old.test
+++ b/tests/set-old.test
@@ -13,7 +13,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-old.test,v 1.11 2000/06/01 00:33:27 hobbs Exp $
+# RCS: @(#) $Id: set-old.test,v 1.12 2000/08/21 01:37:51 ericm Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -668,7 +668,10 @@ test set-old-8.52 {array command, array names -glob} {
set a(-exact) 1
list [catch {array names a -glob} msg] $msg
} {0 -glob}
-
+test set-old-8.53 {array command, array statistics on a non-array} {
+ catch {unset a}
+ list [catch {array statistics a} msg] $msg
+} [list 1 "\"a\" isn't an array"]
test set-old-9.1 {ids for array enumeration} {
catch {unset a}