summaryrefslogtreecommitdiffstats
path: root/tests/expr.test
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2005-08-29 16:41:31 (GMT)
committerKevin B Kenny <kennykb@acm.org>2005-08-29 16:41:31 (GMT)
commit3c5fe5bdae986b6df886956f51454fda837ed6e6 (patch)
treef8ae593abf5a5e56571a5beb05eaee0b1ab77d2e /tests/expr.test
parent2d867d05b3a07b4a2cbbefe48b00762b51d7a766 (diff)
downloadtcl-3c5fe5bdae986b6df886956f51454fda837ed6e6.zip
tcl-3c5fe5bdae986b6df886956f51454fda837ed6e6.tar.gz
tcl-3c5fe5bdae986b6df886956f51454fda837ed6e6.tar.bz2
fix test case bracing and numbering
Diffstat (limited to 'tests/expr.test')
-rw-r--r--tests/expr.test20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/expr.test b/tests/expr.test
index 5604ea2..5c4e5fa 100644
--- a/tests/expr.test
+++ b/tests/expr.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: expr.test,v 1.42 2005/08/29 16:21:58 kennykb Exp $
+# RCS: @(#) $Id: expr.test,v 1.43 2005/08/29 16:41:31 kennykb Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -6270,45 +6270,45 @@ test expr-39.9 {round() boundary case - 1/2 - 1 ulp} {
set x 0.25
set bit 0.125
while 1 {
- set newx [expr { $x + $bit }]
+ set newx [expr {$x + $bit}]
if { $newx == $x || $newx == 0.5 } break
set x $newx
set bit [expr { $bit / 2.0 }]
}
- expr round($x)
+ expr {round($x)}
} 0
test expr-39.10 {round() boundary case - 1/2 + 1 ulp} {
set x 0.75
set bit 0.125
while 1 {
- set newx [expr { $x - $bit }]
+ set newx [expr {$x - $bit}]
if { $newx == $x || $newx == 0.5 } break
set x $newx
set bit [expr { $bit / 2.0 }]
}
- expr round($x)
+ expr {round($x)}
} 1
test expr-39.11 {round() boundary case - -1/2 - 1 ulp} {
set x -0.75
set bit 0.125
while 1 {
- set newx [expr { $x + $bit }]
+ set newx [expr {$x + $bit}]
if { $newx == $x || $newx == -0.5 } break
set x $newx
set bit [expr { $bit / 2.0 }]
}
- expr round($x)
+ expr {round($x)}
} -1
-test expr-39.10 {round() boundary case - -1/2 + 1 ulp} {
+test expr-39.12 {round() boundary case - -1/2 + 1 ulp} {
set x -0.25
set bit 0.125
while 1 {
- set newx [expr { $x - $bit }]
+ set newx [expr {$x - $bit}]
if { $newx == $x || $newx == -0.5 } break
set x $newx
set bit [expr { $bit / 2.0 }]
}
- expr round($x)
+ expr {round($x)}
} 0
# cleanup