summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-09-28 20:06:42 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-09-28 20:06:42 (GMT)
commit341cfa533b51784f8cb9183ec8e2ed6fe6a26e32 (patch)
tree6eca71999a4390624d89bbc89b813a4d2e276495 /tests
parent4c1d56db0ef7325c1817833b5f178dd393fb54e9 (diff)
downloadtcl-341cfa533b51784f8cb9183ec8e2ed6fe6a26e32.zip
tcl-341cfa533b51784f8cb9183ec8e2ed6fe6a26e32.tar.gz
tcl-341cfa533b51784f8cb9183ec8e2ed6fe6a26e32.tar.bz2
* generic/tclExecute.c: Corrected error in INST_LSHIFT in the
* tests/expr.test: calculation done to determine whether a shift in the (long int) type is possible. The calculation had literal value "1" where it needed a value "1L" to compute the correct result. Error detected via testing with the math::bigfloat package [Bug 1567222]
Diffstat (limited to 'tests')
-rw-r--r--tests/expr.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/expr.test b/tests/expr.test
index 20ab38b..0af0747 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.61 2006/09/19 16:31:57 dgp Exp $
+# RCS: @(#) $Id: expr.test,v 1.62 2006/09/28 20:06:43 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -992,6 +992,8 @@ test expr-24.7 {expr edge cases; shifting} {expr wide(5)<<32} 21474836480
test expr-24.8 {expr edge cases; shifting} {expr wide(10<<63)} 0
test expr-24.9 {expr edge cases; shifting} {expr 5>>32} 0
+test expr-24.10 {INST_LSHIFT: Bug 1567222} {expr 500000000000000<<28} 134217728000000000000000
+
# List membership tests
test expr-25.1 {'in' operator} {expr {"a" in "a b c"}} 1
test expr-25.2 {'in' operator} {expr {"a" in "b a c"}} 1