summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-10-11 21:34:59 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-10-11 21:34:59 (GMT)
commita5410fb3a1a9a28c9d7261e9f2e96518f557de36 (patch)
tree9c7e9a92ddeeade771662fa39dbd533371b09288 /tests
parent9db323e98ffbbcc1293e10187377516b6fea0b58 (diff)
downloadtcl-a5410fb3a1a9a28c9d7261e9f2e96518f557de36.zip
tcl-a5410fb3a1a9a28c9d7261e9f2e96518f557de36.tar.gz
tcl-a5410fb3a1a9a28c9d7261e9f2e96518f557de36.tar.bz2
* generic/tclCmdMZ.c: Correct [string is (wide)integer] failure
* tests/string.test: to report correct failindex values for non-decimal integer strings. [Bug 1805887]. * compat/strtoll.c (removed): The routines strtoll() and strtoull() * compat/strtoull.c (removed): are no longer called by the Tcl source * generic/tcl.h: code. (Their functionality has been replaced * unix/Makefile.in: by TclParseNumber().) Remove outdated comments * unix/configure.in: and mountains of configury autogoo that * unix/tclUnixPort.h: allegedly support the mythical systems where * win/Makefile.in: these routines might not have been available. * win/makefile.bc: * win/makefile.vc: * win/tclWinPort.h: * unix/configure: autoconf-2.59
Diffstat (limited to 'tests')
-rw-r--r--tests/string.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/string.test b/tests/string.test
index 4723dbc..e408048 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.63 2007/06/08 20:56:42 dkf Exp $
+# RCS: @(#) $Id: string.test,v 1.64 2007/10/11 21:35:01 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -482,6 +482,9 @@ test string-6.57 {string is integer, false} {
test string-6.58 {string is integer, false on bad octal} {
list [string is integer -fail var 036963] $var
} {0 3}
+test string-6.58.1 {string is integer, false on bad octal} {
+ list [string is integer -fail var 0o36963] $var
+} {0 4}
test string-6.59 {string is integer, false on bad hex} {
list [string is integer -fail var 0X345XYZ] $var
} {0 5}
@@ -649,6 +652,9 @@ test string-6.104 {string is wideinteger, false} {
test string-6.105 {string is wideinteger, false on bad octal} {
list [string is wideinteger -fail var 036963] $var
} {0 3}
+test string-6.105.1 {string is wideinteger, false on bad octal} {
+ list [string is wideinteger -fail var 0o36963] $var
+} {0 4}
test string-6.106 {string is wideinteger, false on bad hex} {
list [string is wideinteger -fail var 0X345XYZ] $var
} {0 5}