summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2001-03-15 14:36:32 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2001-03-15 14:36:32 (GMT)
commit90cecf4cb456a5a3e2f06ec313d9e7f649d3d7d2 (patch)
treea420e978652bba97d00b65890255f15c7e78358b
parent6471990d5f03984456c2ec12a87d1d351d780a04 (diff)
downloadtcl-90cecf4cb456a5a3e2f06ec313d9e7f649d3d7d2.zip
tcl-90cecf4cb456a5a3e2f06ec313d9e7f649d3d7d2.tar.gz
tcl-90cecf4cb456a5a3e2f06ec313d9e7f649d3d7d2.tar.bz2
Error behaviour of [unset] was changed to agree with documentation, so
must change associated test as well.
-rw-r--r--ChangeLog5
-rw-r--r--tests/set-old.test18
2 files changed, 9 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 04ffa20..fca5e37 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-15 Donal K. Fellows <fellowsd@cs.man.ac.uk>
+
+ * tests/set-old.test (set-old-7.2): Changed error behaviour of
+ [unset] to agree with documentation, so must change test as well.
+
2001-03-14 Don Porter <dgp@users.sourceforge.net>
* library/package.tcl (pkg_mkIndex): Added patch from Vince
Darley to make [pkg_mkIndex -verbose] even more verbose.
diff --git a/tests/set-old.test b/tests/set-old.test
index 1cf6aba..ffb6501 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.13 2001/03/06 14:45:03 dkf Exp $
+# RCS: @(#) $Id: set-old.test,v 1.14 2001/03/15 14:36:32 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -204,7 +204,9 @@ test set-old-7.1 {unset command} {
} {0 0 0 1}
test set-old-7.2 {unset command} {
list [catch {unset} msg] $msg
-} {1 {wrong # args: should be "unset ?-nocomplain? ?--? ?varName varName ...?"}}
+} {0 {}}
+# Used to return:
+#{1 {wrong # args: should be "unset ?-nocomplain? ?--? ?varName varName ...?"}}
test set-old-7.3 {unset command} {
catch {unset a}
list [catch {unset a} msg] $msg
@@ -915,15 +917,3 @@ catch {unset aVaRnAmE}
# cleanup
::tcltest::cleanupTests
return
-
-
-
-
-
-
-
-
-
-
-
-