diff options
| author | dgp@users.sourceforge.net <dgp> | 2006-03-25 16:58:38 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2006-03-25 16:58:38 (GMT) |
| commit | 9d9b5b4e56848f60371cfa32763e829785c306ea (patch) | |
| tree | 194f24f0e654cc000fb057f5284f806d07634e7d /tests/expr.test | |
| parent | f97ea08d9829a4966961121dd21cb5be8bc4ec28 (diff) | |
| download | tcl-9d9b5b4e56848f60371cfa32763e829785c306ea.zip tcl-9d9b5b4e56848f60371cfa32763e829785c306ea.tar.gz tcl-9d9b5b4e56848f60371cfa32763e829785c306ea.tar.bz2 | |
* generic/tclExecute.c: Corrections to INST_EXPON detection of
overflow to use mp_int calculations.
Diffstat (limited to 'tests/expr.test')
| -rw-r--r-- | tests/expr.test | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/expr.test b/tests/expr.test index f747f87..8f86e66 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.52 2006/03/24 18:20:37 dgp Exp $ +# RCS: @(#) $Id: expr.test,v 1.53 2006/03/25 16:58:38 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2.1 @@ -1031,6 +1031,7 @@ test expr-23.38 {INST_EXPON: big integer} {expr {10**19}} 1[string repeat 0 19] test expr-23.39 {INST_EXPON: big integer} { expr 1[string repeat 0 30]**2 } 1[string repeat 0 60] +test expr-23.40 {INST_EXPON: overflow to big integer} {expr {(-10)**3}} -1000 # Some compilers get this wrong; ensure that we work around it correctly test expr-24.1 {expr edge cases; shifting} {expr int(5)>>32} 0 |
