summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2005-08-29 17:54:21 (GMT)
committerKevin B Kenny <kennykb@acm.org>2005-08-29 17:54:21 (GMT)
commit55f4459894b78e186f016bfd48cacb8a007681c5 (patch)
treeedf9ee5f43138efd8908e68af37096c88098fbc5
parent3c5fe5bdae986b6df886956f51454fda837ed6e6 (diff)
downloadtcl-55f4459894b78e186f016bfd48cacb8a007681c5.zip
tcl-55f4459894b78e186f016bfd48cacb8a007681c5.tar.gz
tcl-55f4459894b78e186f016bfd48cacb8a007681c5.tar.bz2
renumber expr-39.* to expr-46.*
-rw-r--r--ChangeLog2
-rw-r--r--tests/expr.test26
2 files changed, 14 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 3137dc5..b27c0c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
2005-08-29 Kevin Kenny <kennykb@acm.org>
* generic/tclBasic.c (ExprMathFunc): Restored "round away from
- * tests/expr.test (expr-39.*): zero" behaviour to the
+ * tests/expr.test (expr-46.*): zero" behaviour to the
"round" function. Added
test cases for the behavior, including the awkward case of a
number whose fractional part is 1/2-1/2ulp. [Bug 1275043]
diff --git a/tests/expr.test b/tests/expr.test
index 5c4e5fa..50159c0 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.43 2005/08/29 16:41:31 kennykb Exp $
+# RCS: @(#) $Id: expr.test,v 1.44 2005/08/29 17:54:22 kennykb Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -6239,34 +6239,34 @@ test expr-38.1 {abs of smallest 32-bit integer [Bug 1241572]} {wideIs64bit} {
expr {abs(-2147483648)}
} 2147483648
-test expr-39.1 {round() rounds to +-infinity} {
+test expr-46.1 {round() rounds to +-infinity} {
expr round(0.5)
} 1
-test expr-39.2 {round() rounds to +-infinity} {
+test expr-46.2 {round() rounds to +-infinity} {
expr round(1.5)
} 2
-test expr-39.3 {round() rounds to +-infinity} {
+test expr-46.3 {round() rounds to +-infinity} {
expr round(-0.5)
} -1
-test expr-39.4 {round() rounds to +-infinity} {
+test expr-46.4 {round() rounds to +-infinity} {
expr round(-1.5)
} -2
-test expr-39.5 {round() overflow} {
+test expr-46.5 {round() overflow} {
list [catch {expr round(9.2233720368547758e+018)} result] $result
} {1 {integer value too large to represent}}
-test expr-39.6 {round() overflow} {
+test expr-46.6 {round() overflow} {
list [catch {expr round(-9.2233720368547758e+018)} result] $result
} {1 {integer value too large to represent}}
-test expr-39.7 {round() bad value} {
+test expr-46.7 {round() bad value} {
set x trash
list [catch {expr {round($x)}} result] $result
} {1 {argument to math function didn't have numeric value}}
-test expr-39.8 {round() already an integer} {
+test expr-46.8 {round() already an integer} {
set x 123456789012
incr x
expr round($x)
} 123456789013
-test expr-39.9 {round() boundary case - 1/2 - 1 ulp} {
+test expr-46.9 {round() boundary case - 1/2 - 1 ulp} {
set x 0.25
set bit 0.125
while 1 {
@@ -6277,7 +6277,7 @@ test expr-39.9 {round() boundary case - 1/2 - 1 ulp} {
}
expr {round($x)}
} 0
-test expr-39.10 {round() boundary case - 1/2 + 1 ulp} {
+test expr-46.10 {round() boundary case - 1/2 + 1 ulp} {
set x 0.75
set bit 0.125
while 1 {
@@ -6288,7 +6288,7 @@ test expr-39.10 {round() boundary case - 1/2 + 1 ulp} {
}
expr {round($x)}
} 1
-test expr-39.11 {round() boundary case - -1/2 - 1 ulp} {
+test expr-46.11 {round() boundary case - -1/2 - 1 ulp} {
set x -0.75
set bit 0.125
while 1 {
@@ -6299,7 +6299,7 @@ test expr-39.11 {round() boundary case - -1/2 - 1 ulp} {
}
expr {round($x)}
} -1
-test expr-39.12 {round() boundary case - -1/2 + 1 ulp} {
+test expr-46.12 {round() boundary case - -1/2 + 1 ulp} {
set x -0.25
set bit 0.125
while 1 {