summaryrefslogtreecommitdiffstats
path: root/tests/pwd.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pwd.test')
-rw-r--r--tests/pwd.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/pwd.test b/tests/pwd.test
index 3486e70..3d4cffd 100644
--- a/tests/pwd.test
+++ b/tests/pwd.test
@@ -20,9 +20,10 @@ test pwd-1.1 {simple 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 {
+
+test pwd-2.1 {pwd takes no args} -body {
pwd foobar
} -returnCodes error -result "wrong \# args: should be \"pwd\""