summaryrefslogtreecommitdiffstats
path: root/tests/execute.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-08 19:36:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-08 19:36:29 (GMT)
commitdf93fd85a35f40f47d2d6b9a7ec9326346b3b6b4 (patch)
tree6744c6bef5b033702c89aa10637679f26083fa6d /tests/execute.test
parent1812305cb35d0096d50f9b1e7c1c368f230b6f07 (diff)
parente7a40e1084f2d3c711a2aeccccb9b9b40b0c37e7 (diff)
downloadtcl-df93fd85a35f40f47d2d6b9a7ec9326346b3b6b4.zip
tcl-df93fd85a35f40f47d2d6b9a7ec9326346b3b6b4.tar.gz
tcl-df93fd85a35f40f47d2d6b9a7ec9326346b3b6b4.tar.bz2
Merge 8.7
Diffstat (limited to 'tests/execute.test')
-rw-r--r--tests/execute.test14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/execute.test b/tests/execute.test
index 13ac348..d4dbe5b 100644
--- a/tests/execute.test
+++ b/tests/execute.test
@@ -801,9 +801,9 @@ test execute-7.7 {Wide int handling in INST_EQ and [incr]} {
set y [expr {$x+1}]
expr {double($x) == double($y)}
} 1
-test execute-7.8 {Wide int conversions can change sign} longIs32bit {
- set x 0x80000000
- expr {int($x) < wide($x)}
+test execute-7.8 {Wide int conversions can change sign} {
+ set x 0x8000000000000000
+ expr {wide($x) < 0}
} 1
test execute-7.9 {Wide int handling in INST_MOD} {
expr {(wide(1)<<60) % ((wide(47)<<45)-1)}
@@ -883,12 +883,12 @@ test execute-7.31 {Wide int handling in abs()} {
set y 0x123456871234568
concat [expr {abs($x)}] [expr {abs($y)}]
} {730503879441204585 81985533099853160}
-test execute-7.32 {Wide int handling} longIs32bit {
+test execute-7.32 {Wide int handling} {
expr {int(1024 * 1024 * 1024 * 1024)}
-} 0
-test execute-7.33 {Wide int handling} longIs32bit {
+} 1099511627776
+test execute-7.33 {Wide int handling} {
expr {int(0x1 * 1024 * 1024 * 1024 * 1024)}
-} 0
+} 1099511627776
test execute-7.34 {Wide int handling} {
expr {wide(0x1) * 1024 * 1024 * 1024 * 1024}
} 1099511627776