summaryrefslogtreecommitdiffstats
path: root/tests/scan.test
Commit message (Collapse)AuthorAgeFilesLines
* Now that all Tcl source files are UTF-8 by default, we can use the ©-sign ↵jan.nijtmans2020-11-231-3/+3
| | | | whenever reasonable.
* Merge 8.6jan.nijtmans2020-09-041-1/+1
|\
| * Let all test-cases load the "tcltest" package the same way. Depend on ↵jan.nijtmans2020-09-041-1/+1
| | | | | | | | tcltest 2.5, since we never test with earlier tcltest versions
* | Update for TIP-551: griffin2020-05-231-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add documentation for this feature to the expr man page. The keyword "integer value" has been added to the string and expr man page. Added TCL_PARSE_NO_UNDERSCORE flag so that the digit separator can be disabled when need when calling TclParseNumber. Disabled digit separator in the "scan" command when scanning integers and floating-point numbers. This is the one place where existing code may rely on number parsing to stop at an underscore. Disallow underscore between the leading 0 and the radix specifiers 'x', 'o', 'b', and 'd'. Added tests for disallowed underscore use and scan with underscores between digits in the source string.
* | Bring back test-cases closer to what they werejan.nijtmans2018-09-081-5/+5
| |
* | Merge 8.7jan.nijtmans2018-09-031-2/+1
|\ \
| * | Eliminate use of wideBiggerThanInt test constraint, since it's the same as ↵jan.nijtmans2018-09-031-2/+1
| | | | | | | | | | | | | | | | | | {longIs32bit wideIs64bit}. And ... it's name is actually wrong ... Don't use int() any more in any test constraint, since it's semantics might change. We don't want the test constraints to change with it. (See: TIP# 514) Simplify implementation of wideIs64bit test constraint, just testing for 64-bit sign bit is enough.
* | | Now, restore wide(), but make int() the same as entier(). Add new utility ↵jan.nijtmans2018-08-281-9/+6
|/ / | | | | | | function.
* | merge core-8-branchjan.nijtmans2017-12-191-1/+1
|\ \ | |/
| * (cherry-pick from core-8-6-8-rc): Duplicate test namesjan.nijtmans2017-12-061-1/+1
| |
* | merge trunkjan.nijtmans2017-04-141-5/+10
|\ \ | |/
| * Don't use "0%o" format in test-cases, as it suggest's it's the normal way to ↵jan.nijtmans2017-04-141-0/+18
| | | | | | | | | | format octal numbers: it isn't. Better use "%#o". Add tests for "format" and "scan" corner-cases which weren't documented (except in TIP's) neither had tests before.
| * Revert recent commit [80252e0aed]. TIP 237 is clear that %llu is invalid.dgp2017-04-121-13/+0
|/
* Fix [4b12ccb3363e81b132e8dbe12aeec596102be1a8|4b12ccb336]: format/scan %llu ↵jan.nijtmans2017-04-051-0/+13
| | | | doesn't work. Also added new test-cases showing the expected behavior.
* [be003d570f] TclParseNumber() failed to fully implement TCL_PARSE_BINARY_ONLY.dgp2016-10-121-0/+3
|
* [be003d570f] TclParseNumber() failed to fully implement TCL_PARSE_OCTAL_ONLY.dgp2016-10-121-0/+3
|\
| * Add a test too.dgp2016-10-121-0/+3
| |
* | [3556215]: Made [scan] match [format] better in what it accepts as a formatdkf2013-10-221-4/+13
|\ \ | |/ | | string, by allowing uppercase %X, %E and %G.
| * [3556215]: Made [scan] match [format] better in what it accepts as a formatdkf2013-10-221-4/+13
| | | | | | string, by allowing uppercase %X, %E and %G.
| * [Bug 3606387]: Fix isolation of test scan-7.4.dkf2013-03-191-1/+1
| |
* | [Bug 3606387]: Fix isolation of test scan-7.4.dkf2013-03-191-346/+417
| | | | | | Also updated scan.test to use tcltest 2 properly.
* | 3402540 Corrections to TclParseNumber() to make it reject invalid Nan(Hex).dgp2011-09-011-2/+2
|\ \ | |/ | | [scan Inf %g] is portable; remove constraint.
| * 3402540 Corrections to TclParseNumber() to make it reject invalid Nan(Hex)dgp2011-09-011-2/+2
| | | | | | [scan Inf %g] is portable; remove constraint.
* | Better error-message in case of errors related to setting a variablejan.nijtmans2011-04-041-7/+7
| |
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ | | | | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * Ensure that the %ld conversion works correctly on 64-bit platforms. [Bug ↵dkf2004-08-191-2/+5
| | | | | | | | | | | | 1011860]
* | | TIP #343 IMPLEMENTATION - A Binary Specifier for [format/scan]ferrieux2008-12-101-3/+7
| | |
* | | fix [2021443] inconsistant "wrong # args" messagesnijtmans2008-07-191-4/+4
|/ /
* | * doc/DoubleObj.3: More doc updates for TIP 237.dgp2006-04-251-1/+5
| | | | | | | | | | | | | | | | * doc/scan.n: * generic/tclScan.c: [scan $s %u] is documented to accept only * tests/scan.test: decimal formatted integers. Fixed code to match.
* | Use test constraints properly instead of looking in tcl_platformdkf2006-03-211-2/+2
| | | | | | | | | | Consistent method of calling test constraints, and (try to) move constraint setup to the top of the test file
* | 2005-12-19 Don Porter <dgp@users.sourceforge.net>dgp2005-12-191-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdMZ.c: Modified [string is double] to use * tests/string.test: TclParseNumber() to parse trailing whitespace. Ensures consistency, and makes it easier to cleanup after invalid internal reps left behind by parsing [Bugs 1360432 1382287]. * generic/tclParseExpr.c: Added TCL_PARSE_NO_WHITESPACE to * generic/tclScan.c: TclParseNumber() calls since [scan] and * tests/scan.test: [expr] parsing don't want spaces in parsed numbers. * generic/tclInt.h: Added TCL_PARSE_NO_WHITESPACE flag to the * generic/tclStrToD.c: TclParseNumber() interface.
* | TIP#237 IMPLEMENTATIONdgp2005-10-081-3/+80
| | | | | | | | | | | | [kennykb-numerics-branch] Resynchronized with the HEAD; at this checkpoint [-rkennykb-numerics-branch-20051008], the HEAD and kennykb-numerics-branch contain identical code.
* | * tests/compExpr-old.test: Still more conversion of "nonPortable"dgp2005-07-281-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | * tests/error.test: tests into tests with constraints that * tests/expr-old.test: describe the limits of their * tests/expr.test: portability. Also more consolidation * tests/fileName.test: of constraint synonyms. * tests/format.test: wideis64bit, 64bitInts => wideIs64bit * tests/get.test: wideIntegerUnparsed => wideIs32bit * tests/load.test: wideIntExpressions => wideBiggerThanInt * tests/obj.test: * tests/parseExpr.test: Dropped "roundOffBug" constraint that * tests/string.test: protected from buggy sprintf.
* | Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-3/+3
| |
* | Ensure that the %ld conversion works correctly on 64-bit platforms. [Bug ↵dkf2004-08-191-2/+5
|/ | | | 1011860]
* * Corrections to tcltest and the Tcl test suite so that a testdgp2002-06-221-4/+3
| | | | | | | with options -constraints knownBug -limitConstraints 1 only tests the knownBug tests. Mostly involves replacing direct access to the testConstraints array with calls to the testConstraint command (which requires tcltest version 2).
* TIP#72 implementation. See ChangeLog for details.dkf2002-02-151-1/+10
| | | | | This version builds clean on Solaris/SPARC, with GCC and CC, both with and without threads and both in 32-bit and 64-bit mode.
* * tests/scan.test:hobbs2002-02-071-2/+13
| | | | | | * generic/tclScan.c (Tcl_ScanObjCmd): corrected scan 0x... %x handling that didn't accept the 0x as a prelude to a base 16 number. [Bug #495213]
* * docs/scan.n:hobbs2000-12-101-15/+30
| | | | | | | * tests/scan.test: * generic/tclScan.c (Tcl_ScanObjCmd): changed %o and %x to use strtoul instead of strtol to correctly preserve scan<>format conversion of large integers. [Patch #102663, Bug #124600]
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
* * tests/scan.test:hobbs1999-11-301-1/+5
| | | | | * generic/tclScan.c: fixed scan where %[..] didn't match anything and added test case [Bug: 3700]
* * tests/scan.test:hobbs1999-11-191-6/+30
| | | | | * generic/tclScan.c: finished support for inline scan by supporting XPG identifiers.
* added tests for related fixeshobbs1999-10-291-7/+38
|
* Fixed style problems in many of the test files.rjohnson1999-06-261-2/+2
| | | | Fixed bug in pkg.test where defs.tcl was still being used.
* Modified the tests to use the package tcltestjenn1999-06-261-2/+3
|
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-71/+411
|
* cleaned up test suite so most of the tests pass on Windowsstanton1998-11-021-2/+2
|
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|