diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2004-05-19 13:00:13 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2004-05-19 13:00:13 (GMT) |
commit | 462f64f569bcdb346dab2aebb0450996c746f7f4 (patch) | |
tree | 7b299c87ddfad16b26caeb9ad304624114a60eea | |
parent | b5d4fc36dcbb112cdb51e6f4eaf9550785e60012 (diff) | |
download | tcl-462f64f569bcdb346dab2aebb0450996c746f7f4.zip tcl-462f64f569bcdb346dab2aebb0450996c746f7f4.tar.gz tcl-462f64f569bcdb346dab2aebb0450996c746f7f4.tar.bz2 |
Fix whitespace and add test for case when pwd can generate an error
-rw-r--r-- | tests/pwd.test | 23 |
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 - - - - - - - - - - - - |