summaryrefslogtreecommitdiffstats
path: root/tests/string.test
Commit message (Collapse)AuthorAgeFilesLines
* 3396731 Revise the [string reverse] implementation to operate on thedgp2011-08-271-0/+8
|\ | | | | representation that comes in, avoid conversion to other reps.
| * 3396731 Another rewrite of TclStringObjReverse() to make it adopt thedgp2011-08-251-0/+8
| | | | | | | | nijtmans approach for reversing the objPtr->bytes rep without losing performance.
* | [Enh 3396731] Follow-up: special case for Pure-unicode representationjan.nijtmans2011-08-251-0/+3
|/
* comment fixjan.nijtmans2011-05-061-3/+3
|\
| * comment fixjan.nijtmans2011-05-061-3/+3
| |\
| | * comment fixjan.nijtmans2011-05-061-3/+3
| | |
* | | Test for [Bug 3285472]. Not buggy in trunk.dgp2011-04-121-0/+5
|\ \ \ | |/ /
| * | Repair corruption in [string reverse] when string rep invalidation faileddgp2011-04-121-0/+5
| | | | | | | | | to also reset the bytes allocated for string rep to zero [Bug 3285472].
* | | 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.
| | * replaced new test string-12.21 with dkf's version from HEADMiguel Sofer2006-01-231-9/+14
| | |
| | * added test for [Bug 1410553]Miguel Sofer2006-01-231-1/+11
| | |
| | * * tests/string.test: string-10.[21-30]hobbs2005-05-111-1/+31
| | | | | | | | | | | | | | | * generic/tclCmdMZ.c (Tcl_StringObjCmd): add extra checks to prevent possible UMR in unichar cmp function for string map.
| | * * generic/tclCmdMZ.c: Corrected intrep-dependence ofdgp2005-04-221-1/+10
| | | | | | | | | | | | * tests/string.test: [string is boolean] [Bug 1187123]
| | * Fix crash in [string map] when objects are shared. [Bug 1018562]dkf2004-08-301-1/+5
| | |
| | * * string.test (string-4.15): Added test for [string first] bugdgp2003-06-091-1/+8
| | | | | | | | | | | | | | | reported in Tcl 8.3, where test for all-single-byte-encoded strings was not reliable.
| | * * generic/tclCmdMZ.c (Tcl_StringObjCmd,STR_IS_INT): Correcteddgp2003-04-111-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | inconsistent results of [string is integer] observed on systems where sizeof(long) != sizeof(int). [Bug 718878] * tests/string.test: Added tests for Bug 718878. * doc/string.n: Clarified that [string is integer] accepts 32-bit integers.
| * | Backport fix for [Bug 2006884]dkf2009-01-061-8/+8
| | |
* | | Added test case for empty table in ::prefixferrieux2010-03-011-1/+4
| | |
* | | More test suite cleanup for "-singleproc 1 -debug 1" testing.dgp2009-06-241-1/+2
| | |
* | | Fix test flaws exposed by -singleproc 1 -debug 1dgp2008-10-141-4/+4
| | |
* | | Implemented TIP#195 - tcl::prefix command. [Patch 1040206]dkf2008-10-031-1/+201
| | |
* | | Implement TIP 318.dkf2008-09-291-1/+10
| | |
* | | fix [2021443] inconsistant "wrong # args" messagesnijtmans2008-07-191-2/+2
| | |
* | | Fix [2006884]dkf2008-07-011-10/+8
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tclInt.decls: move TclByteArrayMatch and TclReToGlobhobbs2007-12-111-1/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclIntDecls.h: to tclInt.h from stubs. * generic/tclStubInit.c: Add flags var to TclByteArrayMatch for * generic/tclInt.h: future extensibility * generic/tcl.h: define TCL_MATCH_EXACT doc for Tcl_StringCaseMatch. * doc/StrMatch.3: It is compatible with existing usage. * generic/tclExecute.c (INST_STR_MATCH): flag for TclByteArrayMatch * generic/tclUtil.c (TclByteArrayMatch, TclStringMatchObj): * generic/tclRegexp.c (Tcl_RegExpExecObj): * generic/tclCmdMZ.c (StringMatchCmd): Use TclStringMatchObj * tests/string.test (11.9.* 11.10.*): more tests
* | Turn the [string] command into a real compiled ensemble.dkf2007-11-231-5/+5
| |
* | Flag shimmering bug found in [string range].dkf2007-11-221-1/+6
| |
* | * generic/tclDictObj.c: Changed the underlying implementation of thedkf2007-11-201-3/+3
| | | | | | | | | | | | | | | | | | hash table used in dictionaries to additionally keep all entries in the hash table in a linked list, which is only ever added to at the end. This makes iteration over all entries in the dictionary in key insertion order a trivial operation, and so cleans up a great deal of complexity relating to dictionary representation and stability of iteration order.
* | \u0000 is ASCII! [Bug 1808258]dkf2007-11-011-4/+4
| |
* | * generic/tclIOCmd.c: Revise [open] so that it interprets leadingdgp2007-10-151-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zero strings passed as the "permissions" argument as octal numbers, even if Tcl itself no longer parses integers in that way. * unix/tclUnixFCmd.c: Revise the "-permissions" [file attribute] so that it interprets leading zero strings as octal numbers, even if Tcl itself no longer parses integers in that way. * generic/tclCompExpr.c: Corrections to code that produces * generic/tclUtil.c: extended "bad octal" error messages. * tests/cmdAH.test: Test revisions so that tests pass whether or * tests/cmdIL.test: not Tcl parses leading zero strings as octal. * tests/compExpr-old.test: * tests/compExpr.test: * tests/compile.test: * tests/expr-old.test: * tests/expr.test: * tests/incr.test: * tests/io.test: * tests/lindex.test: * tests/link.test: * tests/mathop.test: * tests/parseExpr.test: * tests/set.test: * tests/string.test: * tests/stringComp.test:
* | * generic/tclCmdMZ.c: Correct [string is (wide)integer] failuredgp2007-10-111-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Forgot to fix the relevant testsdkf2007-06-081-5/+5
| |
* | * tests/string.test: More [string reverse] tests.dgp2007-03-301-1/+28
| |
* | [string is list] tests: fixed mixed up test name, added test of unicode handlingdkf2006-11-221-2/+6
| |
* | TIP#269 implementationdkf2006-11-221-3/+48
| |
* | Optimize for the unshared case.dkf2006-11-091-3/+9
| |
* | Implemented [string reverse].dkf2006-11-091-6/+14
| | | | | | | | Finalizes basic TIP#272 implementation.
* | added ref to [Bug 1410553] in new test string-12.21Miguel Sofer2006-01-231-2/+2
| |
* | Added test for [Bug 1410553]dkf2006-01-231-1/+17
| |
* | 2005-12-19 Don Porter <dgp@users.sourceforge.net>dgp2005-12-191-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | * tests/compile.test: Updated tests with changed behaviordgp2005-11-091-3/+6
| | | | | | | | | | | | | | | | | | * tests/execute.test: due to addition of bignums. * tests/expr-old.test: * tests/expr.test: * tests/parseExpr.test: * tests/platform.test: * tests/string.test:
* | Marked several failing tests as "knownBug" until they can be updated.dgp2005-10-211-2/+2
| |
* | 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-2/+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.
* | * tests/string.test: Add string is tests formdejong2005-07-231-1/+49
| | | | | | | | | | | | functionality that was not tested. * win/README: Update msys + mingw URL. Remove old Cygwin + mingw info.
* | Corrected duplication of test namesdgp2005-05-121-5/+5
| |
* | * tests/string.test: string-10.[21-30]hobbs2005-05-111-1/+31
| | | | | | | | | | * generic/tclCmdMZ.c (Tcl_StringObjCmd): add extra checks to prevent possible UMR in unichar cmp function for string map.