diff options
author | dgp@users.sourceforge.net <dgp> | 2006-04-25 17:15:25 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2006-04-25 17:15:25 (GMT) |
commit | e3163e2f2da603cf9e26e51dcef63ef1ee836fd3 (patch) | |
tree | d127b0b64c2a06ea32dd3a4c919e3471d2e0f5b0 /tests/scan.test | |
parent | 57a8b2922478952fef05b9e65ebf38863fc9734b (diff) | |
download | tcl-e3163e2f2da603cf9e26e51dcef63ef1ee836fd3.zip tcl-e3163e2f2da603cf9e26e51dcef63ef1ee836fd3.tar.gz tcl-e3163e2f2da603cf9e26e51dcef63ef1ee836fd3.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/scan.test')
-rw-r--r-- | tests/scan.test | 6 |
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 |