summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-04-25 17:15:25 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-04-25 17:15:25 (GMT)
commit592cead58808e8b3266043721e4f4d370ef3c3e7 (patch)
treed127b0b64c2a06ea32dd3a4c919e3471d2e0f5b0 /tests
parent562604634e67537e7a7311b43c61aa900f927ce6 (diff)
downloadtcl-592cead58808e8b3266043721e4f4d370ef3c3e7.zip
tcl-592cead58808e8b3266043721e4f4d370ef3c3e7.tar.gz
tcl-592cead58808e8b3266043721e4f4d370ef3c3e7.tar.bz2
* doc/DoubleObj.3: More doc updates for TIP 237.
* doc/scan.n: * generic/tclScan.c: [scan $s %u] is documented to accept only * tests/scan.test: decimal formatted integers. Fixed code to match.
Diffstat (limited to 'tests')
-rw-r--r--tests/scan.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/scan.test b/tests/scan.test
index e9ffad6..2a07f4b 100644
--- a/tests/scan.test
+++ b/tests/scan.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: scan.test,v 1.20 2006/03/21 11:12:29 dkf Exp $
+# RCS: @(#) $Id: scan.test,v 1.21 2006/04/25 17:15:25 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -429,6 +429,10 @@ test scan-5.13 {integer scanning and overflow} {
scan {300000000 3000000000 30000000000} {%ld %ld %ld}
} {300000000 3000000000 30000000000}
+test scan-5.14 {integer scanning} {
+ scan 0xff %u
+} 0
+
test scan-6.1 {floating-point scanning} {
set a {}; set b {}; set c {}; set d {}
list [scan "2.1 -3.0e8 .99962 a" "%f%g%e%f" a b c d] $a $b $c $d