summaryrefslogtreecommitdiffstats
path: root/tests/clock.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)
commitfe3b77ca9908a6186fe26220b0cbd0f1891a9abe (patch)
tree26698b0ef5c437526bbf0b1f88222dd4a0275d2a /tests/clock.test
parent399af39420ceae6abb75d2027a70c428fc42d1af (diff)
downloadtcl-fe3b77ca9908a6186fe26220b0cbd0f1891a9abe.zip
tcl-fe3b77ca9908a6186fe26220b0cbd0f1891a9abe.tar.gz
tcl-fe3b77ca9908a6186fe26220b0cbd0f1891a9abe.tar.bz2
Add "{}" around many "expr" commands in testcases. Also in doc/expr.n
Diffstat (limited to 'tests/clock.test')
-rw-r--r--tests/clock.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/clock.test b/tests/clock.test
index 6d502d4..db43a67 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -35440,7 +35440,7 @@ test clock-32.1 {scan/format across the Gregorian change} {
# clock clicks
test clock-33.1 {clock clicks tests} {
- expr [clock clicks]+1
+ expr {[clock clicks] + 1}
concat {}
} {}
test clock-33.2 {clock clicks tests} {
@@ -35453,7 +35453,7 @@ test clock-33.3 {clock clicks tests} {
list [catch {clock clicks foo} msg] $msg
} {1 {bad option "foo": must be -milliseconds or -microseconds}}
test clock-33.4 {clock clicks tests} {
- expr [clock clicks -milliseconds]+1
+ expr {[clock clicks -milliseconds] + 1}
concat {}
} {}
test clock-33.4a {clock milliseconds} {
@@ -35909,7 +35909,7 @@ test clock-34.68 {clock scan tests (merid and TZ)} {
# clock seconds
test clock-35.1 {clock seconds tests} {
- expr [clock seconds]+1
+ expr {[clock seconds] + 1}
concat {}
} {}
test clock-35.2 {clock seconds tests} {