From 2df2847723320a5dade13d3ae8133d879725a887 Mon Sep 17 00:00:00 2001 From: dgp Date: Tue, 1 Nov 2005 15:18:27 +0000 Subject: * expr.test (expr-46.13): Added test that illustrates shortcoming of Patch 1340260. --- ChangeLog | 5 +++++ tests/expr.test | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d0c7b32..542be58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-01 Don Porter + + * expr.test (expr-46.13): Added test that illustrates + shortcoming of Patch 1340260. + 2005-10-31 Miguel Sofer * 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]} { -- cgit v0.12