diff options
author | dgp <dgp@users.sourceforge.net> | 2018-10-24 00:06:49 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2018-10-24 00:06:49 (GMT) |
commit | cd5f33a6cd82523baee7e507b27157dfb78d0e23 (patch) | |
tree | 1d4b80f4bd99ae3aeb9c7daca1e0e95af6816bb5 /tests/execute.test | |
parent | 7ba1c3dd1dd019281255b0f153a4eb6ab7ae2986 (diff) | |
parent | f6111b5415da13ee66e0bd8fb0eb4c8599091eca (diff) | |
download | tcl-cd5f33a6cd82523baee7e507b27157dfb78d0e23.zip tcl-cd5f33a6cd82523baee7e507b27157dfb78d0e23.tar.gz tcl-cd5f33a6cd82523baee7e507b27157dfb78d0e23.tar.bz2 |
merge trunk
Diffstat (limited to 'tests/execute.test')
-rw-r--r-- | tests/execute.test | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/execute.test b/tests/execute.test index a971f92..4cf0829 100644 --- a/tests/execute.test +++ b/tests/execute.test @@ -34,7 +34,7 @@ testConstraint testobj [expr { && [llength [info commands teststringobj]] }] -testConstraint longIs32bit [expr {int(0x80000000) < 0}] +testConstraint longIs32bit [expr {$tcl_platform(wordSize) == 4}] testConstraint testexprlongobj [llength [info commands testexprlongobj]] # Tests for the omnibus TclExecuteByteCode function: @@ -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 |