summaryrefslogtreecommitdiffstats
path: root/tests/expr.test
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2006-11-05 03:33:55 (GMT)
committerdgp <dgp@noemail.net>2006-11-05 03:33:55 (GMT)
commited8c5678a1252e6d6d4bda76ed65d72d4e4c7859 (patch)
tree264ef29653c5c4d643fcd6144b7e8d438c41b036 /tests/expr.test
parentd3c46fe4988edacd1794010ab4c9f4b098104f92 (diff)
downloadtcl-ed8c5678a1252e6d6d4bda76ed65d72d4e4c7859.zip
tcl-ed8c5678a1252e6d6d4bda76ed65d72d4e4c7859.tar.gz
tcl-ed8c5678a1252e6d6d4bda76ed65d72d4e4c7859.tar.bz2
TIP#274 IMPLEMENTATION
* generic/tclParseExpr.c: Exponentiation operator is now * tests/expr.test: right associative. [Patch 1556802] FossilOrigin-Name: a792c55b9b5e53b889693bf0c61206bafbe16e1b
Diffstat (limited to 'tests/expr.test')
-rw-r--r--tests/expr.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/expr.test b/tests/expr.test
index 9fc56e5..7064f17 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.64 2006/10/30 16:30:36 dgp Exp $
+# RCS: @(#) $Id: expr.test,v 1.65 2006/11/05 03:33:57 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -980,6 +980,9 @@ test expr-23.46 {INST_EXPON: Bug 1561260} -body {
test expr-23.47 {INST_EXPON: Bug 1561260} {
expr 2**32*5**32
} 1[string repeat 0 32]
+test expr-23.48 {INST_EXPON: TIP 274: right assoc} {
+expr 2**3**4
+} 2417851639229258349412352
# 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