summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/pwd.test23
1 files changed, 7 insertions, 16 deletions
diff --git a/tests/pwd.test b/tests/pwd.test
index 8c39b4e..1592680 100644
--- a/tests/pwd.test
+++ b/tests/pwd.test
@@ -11,32 +11,23 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: pwd.test,v 1.6 2000/04/10 17:19:03 ericm Exp $
+# RCS: @(#) $Id: pwd.test,v 1.7 2004/05/19 13:00:13 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
- package require tcltest
+ package require tcltest 2
namespace import -force ::tcltest::*
}
test pwd-1.1 {simple pwd} {
- catch pwd
+ catch pwd
} 0
test pwd-1.2 {simple pwd} {
- expr [string length pwd]>0
+ expr [string length pwd]>0
} 1
+test pwd-1.3 {pwd takes no args} -body {
+ pwd foobar
+} -returnCodes error -result "wrong \# args: should be \"pwd\""
# cleanup
::tcltest::cleanupTests
return
-
-
-
-
-
-
-
-
-
-
-
-