From 462f64f569bcdb346dab2aebb0450996c746f7f4 Mon Sep 17 00:00:00 2001 From: dkf Date: Wed, 19 May 2004 13:00:13 +0000 Subject: Fix whitespace and add test for case when pwd can generate an error --- tests/pwd.test | 23 +++++++---------------- 1 file 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 - - - - - - - - - - - - -- cgit v0.12