diff options
Diffstat (limited to 'tests/pwd.test')
-rw-r--r-- | tests/pwd.test | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/tests/pwd.test b/tests/pwd.test index 58612d9..175c852 100644 --- a/tests/pwd.test +++ b/tests/pwd.test @@ -12,29 +12,20 @@ # of this file, and for a DISCLAIMER OF ALL WARRANTIES. 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 - - - - - - - - - - - - |