diff options
author | dgp <dgp@users.sourceforge.net> | 2005-11-09 20:24:09 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2005-11-09 20:24:09 (GMT) |
commit | e9bcf00dec52d57ab73da10e8b9834c92136ff7b (patch) | |
tree | d5727ae8c2bcd47aa739dcedfafa8f3f5c16e140 /tests/string.test | |
parent | 133fb4a09f75b408471dd65c981eb8842ae92c76 (diff) | |
download | tcl-e9bcf00dec52d57ab73da10e8b9834c92136ff7b.zip tcl-e9bcf00dec52d57ab73da10e8b9834c92136ff7b.tar.gz tcl-e9bcf00dec52d57ab73da10e8b9834c92136ff7b.tar.bz2 |
* tests/compile.test: Updated tests with changed behavior
* tests/execute.test: due to addition of bignums.
* tests/expr-old.test:
* tests/expr.test:
* tests/parseExpr.test:
* tests/platform.test:
* tests/string.test:
Diffstat (limited to 'tests/string.test')
-rw-r--r-- | tests/string.test | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/string.test b/tests/string.test index 8de1367..cc43191 100644 --- a/tests/string.test +++ b/tests/string.test @@ -12,7 +12,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: string.test,v 1.53 2005/10/21 20:44:21 dgp Exp $ +# RCS: @(#) $Id: string.test,v 1.54 2005/11/09 20:24:11 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -406,10 +406,13 @@ 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} knownBug { +test string-6.37 {string is double, false on int overflow} { # 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 -} {0 -1} +} {1 0} # 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 |