summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-09-11 04:54:11 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-09-11 04:54:11 (GMT)
commitf022566c6702274fee39625a33c67b3fbe9e0bdd (patch)
treeefceb31bc39c6f1a4ba37995f5beff4aff0f515f /tests
parent79f6a0d9d0e4ea44300ce7ae1c824649615833fc (diff)
downloadtcl-f022566c6702274fee39625a33c67b3fbe9e0bdd.zip
tcl-f022566c6702274fee39625a33c67b3fbe9e0bdd.tar.gz
tcl-f022566c6702274fee39625a33c67b3fbe9e0bdd.tar.bz2
* generic/tclExecute.c: Corrected INST_EXPON flaw that treated
* tests/expr.test: $x**1 as $x**3. [Bug 1555371]
Diffstat (limited to 'tests')
-rw-r--r--tests/expr.test9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/expr.test b/tests/expr.test
index 23f46bd..a26dc63 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.59 2006/08/31 20:09:20 dgp Exp $
+# RCS: @(#) $Id: expr.test,v 1.60 2006/09/11 04:54:12 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -970,9 +970,10 @@ test expr-23.39 {INST_EXPON: big integer} {
} 1[string repeat 0 60]
test expr-23.40 {INST_EXPON: overflow to big integer} {expr {(-10)**3}} -1000
test expr-23.41 {INST_EXPON: overflow to big integer} {expr 2**64} [expr 1<<64]
-test expr-23.41 {INST_EXPON: overflow to big integer} {expr 4**32} [expr 1<<64]
-test expr-23.41 {INST_EXPON: overflow to big integer} {expr 16**16} [expr 1<<64]
-test expr-23.41 {INST_EXPON: overflow to big integer} {expr 256**8} [expr 1<<64]
+test expr-23.42 {INST_EXPON: overflow to big integer} {expr 4**32} [expr 1<<64]
+test expr-23.43 {INST_EXPON: overflow to big integer} {expr 16**16} [expr 1<<64]
+test expr-23.44 {INST_EXPON: overflow to big integer} {expr 256**8} [expr 1<<64]
+test expr-23.45 {INST_EXPON: Bug 1555371} {expr 2**1} 2
# 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