summaryrefslogtreecommitdiffstats
path: root/tests/format.test
Commit message (Collapse)AuthorAgeFilesLines
* Fixed some tests, added trial macOS builddkf2020-11-141-5/+9
|
* Let all test-cases load the "tcltest" package the same way. Depend on ↵jan.nijtmans2020-09-041-2/+2
| | | | tcltest 2.5, since we never test with earlier tcltest versions
* Merge 8.5jan.nijtmans2019-07-301-2/+3
|\
| * Enable testcases on Visual Studio builds. Disable some test-cases on Travis, ↵jan.nijtmans2019-07-291-2/+3
| | | | | | | | which are known to fail.
* | merge 8.5 - bug [d051b77fc1] fixedsebres2018-07-261-0/+14
|\ \ | |/
| * test cases added to cover width overflow by format (should cause limit exceeded)sebres2018-07-261-0/+14
| |
* | Add test-cases, testing the legacy behavior of "format %#d"jan.nijtmans2017-06-221-0/+19
| |
* | Don't use "0%o" format in test-cases, as it suggest's it's the normal way to ↵jan.nijtmans2017-04-141-18/+24
| | | | | | | | | | 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-6/+0
| |
* | Fix [4b12ccb3363e81b132e8dbe12aeec596102be1a8|4b12ccb336]: format/scan %llu ↵jan.nijtmans2017-04-051-0/+6
| | | | | | | | doesn't work. Also added new test-cases showing the expected behavior.
* | EVIL HACKs are bad. Unnecessary ones are intolerable. Bad tests cause trouble.dgp2016-10-201-2/+5
| |
* | more result generation conversiondkf2012-08-041-5/+2
| |
* | 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.
| | * Fix [Bug 1284178] and tweak tests to accommodate.dkf2005-10-131-5/+9
| | |
| | * Fix bug in [format %hx] handling on selected platforms. [Bug 1154163]dkf2005-06-171-1/+5
| | |
| | * fixed format-19.1 for 64 bit machinesKevin B Kenny2004-10-271-3/+3
| | |
| | * backport fixes for 868489 and 1026125Kevin B Kenny2004-10-271-1/+9
| | |
| | * Consequent fixes from [Bug 699060]; [format] should not be too eager to demotedkf2003-05-141-1/+24
| | | | | | | | | | | | wides to ints, and should throw errors when appropriate.
| | * Removed test number dups [Bugs 710322, 710327, 710349, 710363]dkf2003-03-271-12/+12
| | |
| | * Made format less keen on converting numeric types. [Bug #699060]dkf2003-03-141-1/+8
| | |
| | * * generic/tclCmdAH.c (Tcl_FormatObjCmd): Only add the modifierdkf2003-03-141-1/+4
| | | | | | | | | | | | | | | | | | that indicates we've got a wide int when we're formatting in an integer style. Stops some libc's from going mad. [Bug #702622] Also tidied whitespace.
| * | * generic/tclStringObj.c: Corrected failure to grow bufferdgp2009-07-311-1/+5
| | | | | | | | | | | | | | | * tests/format.test: when format spec request large width floating point values. Thanks to Clemens Misch. [Bug 2830354]
| * | * generic/tclStringObj.c (Tcl_AppendFormatToObj):dgp2008-04-071-1/+7
| | | | | | | | | | | | | | | | | | Fix [format {% d}] so that it behaves the same way as in 8.4 and as C's printf(). * tests/format.test: Add a test for '% d' and '%+d'.
* | | [Bug 2932421]: Make [format] less likely to smash intreps.dkf2010-01-181-7/+10
| | |
* | | * generic/tclStringObj.c: Corrected failure to grow bufferdgp2009-07-311-1/+5
| | | | | | | | | | | | | | | * tests/format.test: when format spec request large width floating point values. Thanks to Clemens Misch. [Bug 2830354]
* | | TIP #343 IMPLEMENTATION - A Binary Specifier for [format/scan]ferrieux2008-12-101-1/+4
| | |
* | | fix [2021443] inconsistant "wrong # args" messagesnijtmans2008-07-191-2/+2
| | |
* | | * generic/tclStringObj.c (Tcl_AppendFormatToObj):rmax2008-04-071-1/+7
|/ / | | | | | | | | | | Fix [format {% d}] so that it behaves the same way as in 8.4 and as C's printf(). * tests/format.test: Add a test for '% d' and '%+d'.
* | * generic/tclStringObj.c (Tcl_AppendFormatToObj): Correct failure todgp2008-01-101-1/+5
| | | | | | | | | | * tests/format.test: account for big.used == 0 corner case in the %ll(idox) format directives. [Bug 1867855].
* | Use test constraints properly instead of looking in tcl_platformdkf2006-03-211-14/+15
| | | | | | | | | | Consistent method of calling test constraints, and (try to) move constraint setup to the top of the test file
* | Test updates from [Bug 1284178]dkf2005-10-131-5/+9
| |
* | TIP#237 IMPLEMENTATIONdgp2005-10-081-2/+2
| | | | | | | | | | | | [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-30/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | Fix bug in [format %hx] handling on selected platforms. [Bug 1154163]dkf2005-06-171-1/+5
| |
* | fixed format-19.1 for 64 bit machinesKevin B Kenny2004-10-271-3/+3
| |
* | additional regression test for Bug 868489Kevin B Kenny2004-10-271-1/+9
| |
* | Massive test cleanup; all tests are run, and constraints are used where ↵dkf2004-05-191-3/+2
| | | | | | | | necessary.
* | Omitted constraint required for LP64 platforms.dkf2003-05-141-2/+2
| |
* | Stopped [format] from demoting wides to ints too easily. [Bug 699060]dkf2003-05-141-1/+24
| |
* | Eliminated duplicate test numbers [Bugs 710322, 710327, 710349, 710363]dkf2003-03-271-12/+12
| |
* | * tests/format.test: Renumber tests, a bunch ofmdejong2003-03-181-9/+9
| | | | | | | | tests all had the same id.
* | * generic/tclCmdAH.c (Tcl_FormatObjCmd): Only add the modifierdkf2003-03-141-1/+4
|/ | | | | | that indicates we've got a wide int when we're formatting in an integer style. Stops some libc's from going mad. [Bug #702622] Also tidied whitespace.
* * Corrections to tcltest and the Tcl test suite so that a testdgp2002-06-221-4/+4
| | | | | | | 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-2/+17
| | | | | 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.
* Small improvement in tests (constraint vs. conditionally run tests)dkf2001-08-231-32/+15
|
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
* 1999-09-16 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-09-211-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/timer.test: changed after delay in timer test 6.29 from 1 to 10. [Bug: 2796] * tests/pkg.test: * generic/tclPkg.c: fixed package version check to disallow 1.2..3 [Bug: 2539] * unix/Makefile.in: fixed gendate target - this never worked since RCS was intro'd. * generic/tclGetDate.y: updated to reflect previous changes to tclDate.c (leap year calc) and added CEST and UCT time zone recognition. Fixed 4 missing UCHAR() casts. [Bug: 2717, 954, 1245, 1249] * generic/tclCkalloc.c: changed Tcl_DumpActiveMemory to really dump to stderr and close it [Bug: 725] and changed Tcl_Ckrealloc and Tcl_Ckfree to not bomb when NULL was passed in [Bug: 1719] and changed Tcl_Alloc, et al to not panic when a alloc request for zero came through and NULL was returned (valid on AIX, Tru64) [Bug: 2795, etc] * tests/clock.test: * doc/clock.n: * generic/tclClock.c: added -milliseconds switch to clock clicks to guarantee that the return value of clicks is in the millisecs granularity [Bug: 2682, 1332] 1999-09-15 Jeff Hobbs <hobbs@scriptics.com> * generic/tclIOCmd.c: fixed potential core dump in conjunction with stacked channels with result obj manipulation in Tcl_ReadChars [Bug: 2623] * tests/format.test: * generic/tclCmdAH.c: fixed translation of %0#s in format [Bug: 2605] * doc/msgcat.n: fixed \\ bug in example [Bug: 2548] * unix/tcl.m4: * unix/aclocal.m4: added fix for FreeBSD-[1-2] recognition [Bug: 2070] and fix for IRIX SHLIB_LB_LIBS. [Bug: 2610] * doc/array.n: * tests/var.test: * tests/set.test: * generic/tclVar.c: added an array unset operation, with docs and tests. Variation of [Bug: 1775]. Added fix in TclArraySet to check when trying to set in a non-existent namespace. [Bug: 2613] 1999-09-14 Jeff Hobbs <hobbs@scriptics.com> * tests/linsert.test: * doc/linsert.n: * generic/tclCmdIL.c: fixed end-int interpretation of linsert to correctly calculate value for end, added test and docs [Bug: 2693] * doc/regexp.n: * doc/regsub.n: * tests/regexp.test: * generic/tclCmdMZ.c: add -start switch to regexp and regsub with docs and tests * doc/switch.n: added proper use of comments to example. * generic/tclCmdMZ.c: changed switch to complain when an error occurs that seems to be due to a misplaced comment. * generic/tclCmdMZ.c: fixed illegal ref for \[0-9] substitutions in regsub [Bug: 2723] * generic/tclCmdMZ.c: changed [string equal] to return an Int type object (was a Boolean)
* typojenn1999-08-171-2/+2
|