diff options
author | dgp <dgp@users.sourceforge.net> | 2005-11-01 15:18:27 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2005-11-01 15:18:27 (GMT) |
commit | 2df2847723320a5dade13d3ae8133d879725a887 (patch) | |
tree | f93d47c44abb64420bbf8c24ae99cb41cc2d319f | |
parent | 62aad9ad2f44dc2addaf0ba6a0d95713a8ca44b3 (diff) | |
download | tcl-2df2847723320a5dade13d3ae8133d879725a887.zip tcl-2df2847723320a5dade13d3ae8133d879725a887.tar.gz tcl-2df2847723320a5dade13d3ae8133d879725a887.tar.bz2 |
* expr.test (expr-46.13): Added test that illustrates
shortcoming of Patch 1340260.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tests/expr.test | 5 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2005-11-01 Don Porter <dgp@users.sourceforge.net> + + * expr.test (expr-46.13): Added test that illustrates + shortcoming of Patch 1340260. + 2005-10-31 Miguel Sofer <msofer@users.sf.net> * generic/tclNamesp.c: fix for [Bugs 1338280/1337229]. Thanks Don. 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]} { |