summaryrefslogtreecommitdiffstats
path: root/tests/env.test
diff options
context:
space:
mode:
authorrjohnson <rjohnson@noemail.net>1999-07-08 19:44:42 (GMT)
committerrjohnson <rjohnson@noemail.net>1999-07-08 19:44:42 (GMT)
commit90ca133f455e89e79f080e32c31f59c417b4d54a (patch)
tree3abcb1c18f6a1b538f4caa71d20d9375a1bf2156 /tests/env.test
parent5f4f2c38175ddeaad7e4d6b150a3d91ce63e93fc (diff)
downloadtcl-90ca133f455e89e79f080e32c31f59c417b4d54a.zip
tcl-90ca133f455e89e79f080e32c31f59c417b4d54a.tar.gz
tcl-90ca133f455e89e79f080e32c31f59c417b4d54a.tar.bz2
Fixed bogus test for env.test
FossilOrigin-Name: 931d254c68f58ad3e2758f1f48cfbc7f7c2ff321
Diffstat (limited to 'tests/env.test')
-rw-r--r--tests/env.test13
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/env.test b/tests/env.test
index 6cf4ea7..44fc6aa 100644
--- a/tests/env.test
+++ b/tests/env.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: env.test,v 1.8 1999/07/08 03:35:18 rjohnson Exp $
+# RCS: @(#) $Id: env.test,v 1.9 1999/07/08 19:44:43 rjohnson Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -173,14 +173,9 @@ test env-4.5 {unsetting international environment variables} {execCommandExists}
} "\ub6=\ua7"
test env-5.0 {corner cases - set a value, it should exist} {} {
- if {[llength [array names env]] == 0} {
- error "env array unexpectedly empty"
- }
- set temp [lindex [array names env] end]
- set x $env($temp)
- set env($temp) a
- set result [set env($temp)]
- set env($temp) $x
+ set env(temp) a
+ set result [set env(temp)]
+ unset env(temp)
set result
} {a}
test env-5.1 {corner cases - remove one elem at a time} {} {