summaryrefslogtreecommitdiffstats
path: root/tests/get.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-05-26 12:47:42 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-05-26 12:47:42 (GMT)
commitfea7919329d937f72dfed48c38134d49c8dfa64b (patch)
treea0efcef826a273bb937ed5cb04ec782e9428797f /tests/get.test
parent8852e00049c50af24808ee5d609065b76f829fe9 (diff)
downloadtcl-fea7919329d937f72dfed48c38134d49c8dfa64b.zip
tcl-fea7919329d937f72dfed48c38134d49c8dfa64b.tar.gz
tcl-fea7919329d937f72dfed48c38134d49c8dfa64b.tar.bz2
Revert part of [0381fc9b91]: testcases get-1.8 and get-1.9 are meant for longIs64bit only
Diffstat (limited to 'tests/get.test')
-rw-r--r--tests/get.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/get.test b/tests/get.test
index 8232a9a..079166e 100644
--- a/tests/get.test
+++ b/tests/get.test
@@ -20,6 +20,7 @@ catch [list package require -exact tcl::test [info patchlevel]]
testConstraint testgetint [llength [info commands testgetint]]
testConstraint testdoubleobj [llength [info commands testdoubleobj]]
+testConstraint longIs64bit [expr {$tcl_platform(wordSize) == 8}]
test get-1.1 {Tcl_GetInt procedure} testgetint {
testgetint 44 { 22}
@@ -42,10 +43,10 @@ test get-1.6 {Tcl_GetInt procedure} testgetint {
test get-1.7 {Tcl_GetInt procedure} testgetint {
list [catch {testgetint 44 18446744073709551616} msg] $msg $errorCode
} {1 {integer value too large to represent} {ARITH IOVERFLOW {integer value too large to represent}}}
-test get-1.8 {Tcl_GetInt procedure} testgetint {
+test get-1.8 {Tcl_GetInt procedure} {testgetint longIs64bit} {
testgetint 18446744073709551614
} {-2}
-test get-1.9 {Tcl_GetInt procedure} testgetint {
+test get-1.9 {Tcl_GetInt procedure} {testgetint longIs64bit} {
testgetint +18446744073709551614
} {-2}
test get-1.10 {Tcl_GetInt procedure} testgetint {