summaryrefslogtreecommitdiffstats
path: root/tests/string.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2013-03-19 10:18:18 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2013-03-19 10:18:18 (GMT)
commit28d2c1e4cf3023a3682139dc1c398e401be10a72 (patch)
treee09bbaf60c01d5f95ce073968f11658d9b16602c /tests/string.test
parentb2c63a946192b43f055fa5924e9b972556b1d8f3 (diff)
parentdb361019caee07334478df490742d71a54037af9 (diff)
downloadtcl-28d2c1e4cf3023a3682139dc1c398e401be10a72.zip
tcl-28d2c1e4cf3023a3682139dc1c398e401be10a72.tar.gz
tcl-28d2c1e4cf3023a3682139dc1c398e401be10a72.tar.bz2
[Bug 3606390]: Fix isolation of test string-6.37.
Diffstat (limited to 'tests/string.test')
-rw-r--r--tests/string.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/string.test b/tests/string.test
index f558d30..740cdc6 100644
--- a/tests/string.test
+++ b/tests/string.test
@@ -408,13 +408,15 @@ test string-6.35 {string is double, false} {
test string-6.36 {string is double, false} {
list [string is double -fail var "\n"] $var
} {0 0}
-test string-6.37 {string is double, false on int overflow} {
+test string-6.37 {string is double, false on int overflow} -setup {
+ set var priorValue
+} -body {
# Make it the largest int recognizable, with one more digit for overflow
# Since bignums arrived in Tcl 8.5, the sense of this test changed.
# Now integer values that exceed native limits become bignums, and
# bignums can convert to doubles without error.
list [string is double -fail var [largest_int]0] $var
-} {1 0}
+} -result {1 priorValue}
# string-6.38 removed, underflow on input is no longer an error.
test string-6.39 {string is double, false} {
# This test is non-portable because IRIX thinks