summaryrefslogtreecommitdiffstats
path: root/tests/string.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-03-22 14:15:06 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-03-22 14:15:06 (GMT)
commitae6d91316afca4d7295521163352757b570d0e85 (patch)
tree5b77771e69c55c2bb651a5ccdba2337103cdffad /tests/string.test
parentc5e46efb954d7d3ec9a1594489918053bde2e758 (diff)
parent1aba207fe781bcbb05472aadff385d3a7bc0b819 (diff)
downloadtcl-ae6d91316afca4d7295521163352757b570d0e85.zip
tcl-ae6d91316afca4d7295521163352757b570d0e85.tar.gz
tcl-ae6d91316afca4d7295521163352757b570d0e85.tar.bz2
merge trunk
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 e9e6e6d..1b0486c 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