summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2005-05-10 10:02:07 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2005-05-10 10:02:07 (GMT)
commit6bc86f4b98c36219302ec99939666f84264bc4da (patch)
tree277f1d0351142f29dc83f3b2eb6e3a7b4a166e74 /tests
parent33dde9da38322ebc65c821a378d4debd6a200312 (diff)
downloadtcl-6bc86f4b98c36219302ec99939666f84264bc4da.zip
tcl-6bc86f4b98c36219302ec99939666f84264bc4da.tar.gz
tcl-6bc86f4b98c36219302ec99939666f84264bc4da.tar.bz2
* generic/tclExecute.c (ExponLong, ExponWide): fixed special case
'i**0' for i>0 [Bug 1198892]
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 9811430..f7195af 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.30 2004/11/01 14:38:26 dkf Exp $
+# RCS: @(#) $Id: expr.test,v 1.31 2005/05/10 10:02:18 msofer Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -868,6 +868,9 @@ test expr-23.30 {INST_EXPON: special cases} {expr {wide(-1)**wide(2)}} 1
test expr-23.31 {INST_EXPON: special cases} {expr {wide(-1)**wide(-1)}} -1
test expr-23.32 {INST_EXPON: special cases} {expr {wide(1)**wide(1234567)}} 1
test expr-23.33 {INST_EXPON: special cases} {expr {wide(2)**wide(-2)}} 0
+test expr-23.34 {INST_EXPON: special cases} {expr {2**0}} 1
+test expr-23.35 {INST_EXPON: special cases} {expr {wide(2)**0}} 1
+
# 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