summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-11-01 15:18:27 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-11-01 15:18:27 (GMT)
commit2df2847723320a5dade13d3ae8133d879725a887 (patch)
treef93d47c44abb64420bbf8c24ae99cb41cc2d319f /tests
parent62aad9ad2f44dc2addaf0ba6a0d95713a8ca44b3 (diff)
downloadtcl-2df2847723320a5dade13d3ae8133d879725a887.zip
tcl-2df2847723320a5dade13d3ae8133d879725a887.tar.gz
tcl-2df2847723320a5dade13d3ae8133d879725a887.tar.bz2
* expr.test (expr-46.13): Added test that illustrates
shortcoming of Patch 1340260.
Diffstat (limited to 'tests')
-rw-r--r--tests/expr.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/expr.test b/tests/expr.test
index fe1784a..876fce2 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.47 2005/10/21 21:49:35 dgp Exp $
+# RCS: @(#) $Id: expr.test,v 1.48 2005/11/01 15:18:27 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -6554,6 +6554,9 @@ test expr-46.12 {round() boundary case - -1/2 + 1 ulp} {
}
expr {round($x)}
} 0
+test expr-46.13 {round() handling of long/bignum boundary} {
+ expr {round(double(0x7fffffffffffffff))}
+} 9223372036854775808
# cleanup
if {[info exists a]} {