summaryrefslogtreecommitdiffstats
path: root/tests/pwd.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-30 13:27:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-30 13:27:52 (GMT)
commit076a7e2839881c03d0a98a8fc50823aef42ad79a (patch)
tree26698b0ef5c437526bbf0b1f88222dd4a0275d2a /tests/pwd.test
parent9efaa4d7f1aeb58c52fe41c62713b568a0833948 (diff)
downloadtcl-076a7e2839881c03d0a98a8fc50823aef42ad79a.zip
tcl-076a7e2839881c03d0a98a8fc50823aef42ad79a.tar.gz
tcl-076a7e2839881c03d0a98a8fc50823aef42ad79a.tar.bz2
Add "{}" around many "expr" commands in testcases. Also in doc/expr.n
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\""