summaryrefslogtreecommitdiffstats
path: root/tests/string.test
Commit message (Collapse)AuthorAgeFilesLines
* Added test case for empty table in ::prefixferrieux2010-03-011-1/+4
| | | FossilOrigin-Name: ec977bbd3bb508affcfd3442850b877df0fc7fbd
* More test suite cleanup for "-singleproc 1 -debug 1" testing.dgp2009-06-241-1/+2
| | | FossilOrigin-Name: cb05dda8cccdb06f5c4219d9cdfda8842ed01925
* Fix test flaws exposed by -singleproc 1 -debug 1dgp2008-10-141-4/+4
| | | FossilOrigin-Name: dd5b58f068621eef11af8a6eb1776e38369786b5
* Implemented TIP#195 - tcl::prefix command. [Patch 1040206]dkf2008-10-031-1/+201
| | | FossilOrigin-Name: b99e7f3d7afd8b3691d541885adc6a6c40e2365b
* Implement TIP 318.dkf2008-09-291-1/+10
| | | FossilOrigin-Name: d30b2626749acd21b1e9b14605fcf5de1bb61f50
* fix [2021443] inconsistant "wrong # args" messagesnijtmans2008-07-191-2/+2
| | | FossilOrigin-Name: 1e5261316ed076ff5ff69f2a720e8eff30fcf66e
* Fix [2006884]dkf2008-07-011-10/+8
| | | FossilOrigin-Name: a8de9c95aa018165f42035f57a742243ba8eba9d
* merge stable branch onto HEADdgp2007-12-131-1/+1
| | | FossilOrigin-Name: d1f7550cd9bf1343d8505fb99fc5141b58bb88bf
* * 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 FossilOrigin-Name: ae5e18debaed5b7071d872fdf4c81172071fb176
* Turn the [string] command into a real compiled ensemble.dkf2007-11-231-5/+5
| | | FossilOrigin-Name: 6d7ebe09d9d6d6f332cdfb31ea89528d3304d592
* Flag shimmering bug found in [string range].dkf2007-11-221-1/+6
| | | FossilOrigin-Name: 9622265599eed0ec0ce5e44f4b2bbc7bf0665f54
* * 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. FossilOrigin-Name: 946f57278c96e241062df6247e2a6bd60541de21
* \u0000 is ASCII! [Bug 1808258]dkf2007-11-011-4/+4
| | | FossilOrigin-Name: 97b11542bdf675338bec6ee4d4007f55c3ea5776
* * 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: FossilOrigin-Name: 985f1d240af3c5f24259b36641dc385183af8a14
* * 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 FossilOrigin-Name: 9ed4da643a4fe91e42db6bf614b76b78846fb985
* Forgot to fix the relevant testsdkf2007-06-081-5/+5
| | | FossilOrigin-Name: a924166e8e6b7076cadd260b4ed58e9e6d12ca21
* * tests/string.test: More [string reverse] tests.dgp2007-03-301-1/+28
| | | FossilOrigin-Name: 1446cb10a8827670529a3df37ceae51e261c534d
* [string is list] tests: fixed mixed up test name, added test of unicode handlingdkf2006-11-221-2/+6
| | | FossilOrigin-Name: 5d00b286c5862b875b9d33feeb0fc65e546bd807
* TIP#269 implementationdkf2006-11-221-3/+48
| | | FossilOrigin-Name: 2cfaf6e0222bf67c306f9b1b5fc2d84f56c9ca45
* Optimize for the unshared case.dkf2006-11-091-3/+9
| | | FossilOrigin-Name: 81b71d3d1d9ccaa4212fa4ee1fcbf5c30a7dbb87
* Implemented [string reverse].dkf2006-11-091-6/+14
| | | | | | Finalizes basic TIP#272 implementation. FossilOrigin-Name: 82bd93862e76b783aba51e496f43112b7de547cc
* added ref to [Bug 1410553] in new test string-12.21msofer2006-01-231-2/+2
| | | FossilOrigin-Name: 04c3b011d0620858fcd39975e9df793c3ab06e0b
* Added test for [Bug 1410553]dkf2006-01-231-1/+17
| | | FossilOrigin-Name: a39aff195e4350bf99baa04345981d2dfab1fb9c
* 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. FossilOrigin-Name: 7245b18069391be3d914995ab419daeede7ced6e
* * 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: FossilOrigin-Name: 806ab12661eb35c894ef6c936d8f5b86b49e76f6
* Marked several failing tests as "knownBug" until they can be updated.dgp2005-10-211-2/+2
| | | FossilOrigin-Name: b203d2898fc51fc9ca8f506e0be80159fee6da57
* 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. FossilOrigin-Name: 83fdb360a9aec952bc3ad040afe39106bf9e5ec3
* * 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. FossilOrigin-Name: ef95c5ebb73ec498014e2debf287e96985b6a84c
* * 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. FossilOrigin-Name: 91d8e75c82358f11d635288fd606b50001596d3f
* Corrected duplication of test namesdgp2005-05-121-5/+5
| | | FossilOrigin-Name: b3032b416634a2e91632b22b52c8c1f279901577
* * 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. FossilOrigin-Name: fab27ad2b82fd3f7f6165d26b9b3a31e07f3c0ba
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232kennykb2005-05-101-5/+2
| | | FossilOrigin-Name: 1cc2336920c70c6b9f7825b88dec87fc223f2c4e
* TIP#176 IMPLEMENTATION [Patch 1165695]dgp2005-04-291-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclUtil.c: Extended TclGetIntForIndex to recognize index formats including end+integer and integer+/-integer. * generic/tclCmdMZ.c: Extended the -start switch of [regexp] and [regsub] to accept all index formats known by TclGetIntForIndex. * doc/lindex.n: Updated docs to note new index formats. * doc/linsert.n: * doc/lrange.n: * doc/lreplace.n: * doc/lsearch.n: * doc/lset.n: * doc/lsort.n: * doc/regexp.n: * doc/regsub.n: * doc/string.n: * tests/cmdIL.test: Updated tests. * tests/compile.test: * tests/lindex.test: * tests/linsert.test: * tests/lrange.test: * tests/lreplace.test: * tests/lsearch.test: * tests/lset.test: * tests/regexp.test: * tests/regexpComp.test: * tests/string.test: * tests/stringComp.test: * tests/util.test: FossilOrigin-Name: d9e4591786991fc6676581c61c73cb49f06f13a7
* typodgp2005-04-221-2/+2
| | | FossilOrigin-Name: b4f40c1307aadff1f924cf7ece19c52919764fe0
* * tests/string.test: Test string-23.0 for Bug 1187123.dgp2005-04-221-1/+8
| | | FossilOrigin-Name: 8dc78c8b5584d9d4c06dc6a01e989d50951f31c5
* * tests/clock.test: Correct duplicate test names.dgp2004-10-281-3/+3
| | | | | | | | * tests/namespace.test: * tests/string.test: * tests/io.test (io-50.4): Use namespace variables. FossilOrigin-Name: a891dd598a89ffab9deed60738092a854f68e40f
* Fix a crash caused by sharing in [string map]. [Bug 1018562]dkf2004-08-301-1/+5
| | | FossilOrigin-Name: ee48b7f3599e49aad8899329eec399a172961e64
* TIP#188 implementation. Thanks to KBK! [Patch 940915]dkf2004-06-301-3/+52
| | | FossilOrigin-Name: 93e9c318bd8af8e71e9a56f40b1c7763204f935b
* Massive test cleanup; all tests are run, and constraints are used where ↵dkf2004-05-191-3/+2
| | | | | necessary. FossilOrigin-Name: ae1ac5736f8152bee6dd84f96e191a4a097cebb3
* [string map] now can take dictionaries for maps but the condition for doing sodkf2003-07-041-1/+5
| | | | | | is deeply tricky. [Bug 759936] FossilOrigin-Name: c40ffcd834d111088d971680841151443ff93fdd
* * 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. FossilOrigin-Name: db099374050f4f928ba6506ef3cb2b5378d8fdef
* * 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. FossilOrigin-Name: b2c13f616baca8477fa9dc4ce5d49b320b40af6c
* * generic/tclExecute.c (TclExecuteByteCode INST_STR_MATCH):hobbs2003-02-181-2/+35
| | | | | | | | | | | | | | * generic/tclCmdMZ.c (Tcl_StringObjCmd STR_MATCH): * generic/tclUtf.c (TclUniCharMatch): * generic/tclInt.decls: add private TclUniCharMatch function that * generic/tclIntDecls.h: does string match on counted unicode * generic/tclStubInit.c: strings. Tcl_UniCharCaseMatch has the * tests/string.test: failing that it can't handle strings or * tests/stringComp.test: patterns with embedded NULLs. Added tests that actually try strings/pats with NULLs. TclUniCharMatch should be TIPed and made public in the next minor version rev. FossilOrigin-Name: 28dcdcf39e0981d8917cd869b26dbdb4c0aa8ff6
* * generic/tclUtil.c (SetEndOffsetFromAny): handle integer offsethobbs2002-11-191-1/+19
| | | | | | | | | | | | after the "end-" prefix. * generic/get.test: * generic/string.test: * generic/tclObj.c (SetIntFromAny, SetWideIntFromAny): * generic/tclGet.c (TclGetLong, Tcl_GetInt): simplify sign handling before calling strtoul(l). [Bug #634856] FossilOrigin-Name: 9ed60484106be0df1d59f7a63c433c7e7e957725
* added more string comparison checkshobbs2002-05-291-1/+13
| | | FossilOrigin-Name: 0d46aa8304839f9bc0540e1b3fad61aa00b55a63
* TIP#72 implementation. See ChangeLog for details.dkf2002-02-151-2/+2
| | | | | | | 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. FossilOrigin-Name: 8d82de1905ada4c5d06f5fb967721e8b681b7c82
* added 10.18 and 10.19 extra testshobbs2002-02-071-1/+7
| | | FossilOrigin-Name: cf60e92880daa279463770b264976adeb6ed7887
* Fixed fault with case-insensitive string matching (Bug#233257) and rewrotedkf2002-01-021-1/+5
| | | | | | some tests to test what they claimed to be testing. FossilOrigin-Name: 99e550c5bedfd5ee619bd6cf81b9ee09b8545f7e
* added lset tests and updated lindex tests for TIPs#22,33,45 by Kennyhobbs2001-11-141-2/+3
| | | FossilOrigin-Name: 5325c5bfa82db942a7c0384f0119ad6b2a62a69a
* Negative start index to [string first] caused offset return value (Bug 423581)dkf2001-05-141-1/+4
| | | FossilOrigin-Name: d8f5293bb01a92e4d23206a6906260aeefca4ed9