summaryrefslogtreecommitdiffstats
path: root/tests/string.test
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-5/+2
|
* 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:
* typodgp2005-04-221-2/+2
|
* * tests/string.test: Test string-23.0 for Bug 1187123.dgp2005-04-221-1/+8
|
* * 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.
* Fix a crash caused by sharing in [string map]. [Bug 1018562]dkf2004-08-301-1/+5
|
* TIP#188 implementation. Thanks to KBK! [Patch 940915]dkf2004-06-301-3/+52
|
* Massive test cleanup; all tests are run, and constraints are used where ↵dkf2004-05-191-3/+2
| | | | necessary.
* [string map] now can take dictionaries for maps but the condition for doing sodkf2003-07-041-1/+5
| | | | is deeply tricky. [Bug 759936]
* * 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.
* * 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.
* * 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]
* added more string comparison checkshobbs2002-05-291-1/+13
|
* 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.
* added 10.18 and 10.19 extra testshobbs2002-02-071-1/+7
|
* 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.
* added lset tests and updated lindex tests for TIPs#22,33,45 by Kennyhobbs2001-11-141-2/+3
|
* Negative start index to [string first] caused offset return value (Bug 423581)dkf2001-05-141-1/+4
|
* Fixed problem with [string compare \x00 \x01] and hopefully sped thedkf2001-04-061-3/+8
| | | | | command up in a few cases too (notably byte arrays and UNICODE objects.) [Bug #219201]
* Fixed some string test numberings and added a test.dkf2001-03-121-3/+7
|
* * tests/string.test: extended string repeat testshobbs2000-09-061-1/+23
|
* * tests/string.test: added string map tests for the one-pair case,hobbs2000-05-261-16/+22
| | | | | corrected tests to reflect improved error messages in first/last. Added tests against mem overrun in string index bytearray case.
* * tests/string.test: extended string match testshobbs2000-05-081-1/+34
|
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
* * tests/env.test: removed knownBug limitation from working testhobbs1999-12-041-1/+8
| | | | | | | | | | | | | | | | | | * tests/all.tcl: ensured that ::tcltest::testsDirectory would be set to an absolute path * tests/expr-old.test: * tests/parseExpr.test: * tests/string.test: * generic/tclGet.c: * generic/tclInt.h: * generic/tclObj.c: * generic/tclParseExpr.c: * generic/tclUtil.c: * generic/tclExecute.c: added TclCheckBadOctal routine to enhance error message checking for when users use invalid octal numbers (like 08), as well as replumbed the Expr*Funcs with a new VerifyExprObjType to simplify type handling.
* new test caseshobbs1999-10-211-1/+6
|
* 1999-08-09 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-08-101-3/+15
| | | | | | * tests/string.test: added largest_int proc to adapt for >32 bit machines and int overflow testing. * tests/tcltest.test: fixed minor error in 8.2 result (from dgp)
* * tests/string.test:stanton1999-07-091-1/+4
| | | | | * generic/tclCmdMZ.c: Fixed bug in string range bounds checking code.
* Changed the tests to use the testConstraints array that thejenn1999-07-011-2/+2
| | | | test harness uses instead of the old name (testConfig).
* Marked on of the string tests non-portable. IRIX thinks thatrjohnson1999-06-261-2/+6
| | | | | .e1 is a valid double - the spec and most other UNIX systems do not think it's valid.
* 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
|
* * unix/Makefile.in: Changed install-doc to install-man.stanton1999-06-241-3/+3
| | | | | | | | | | | | | * tools/uniParse.tcl: * tools/uniClass.tcl: * tools/README: * tests/string.test: * generic/regc_locale.c: * generic/tclUniData.c: * generic/tclUtf.c: * doc/string.n: Updated Unicode character tables to reflect latest Unicode 2.1 data. Also rationalized "regexp" and "string is" definitions of character classes.
* * generic/tclUnicodeObj.c: Lots of cleanup and simplification.stanton1999-06-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | Fixed several memory bugs. Added TclAppendUnicodeToObj. * generic/tclInt.h: Added declarations for various Unicode string functions. * generic/tclRegexp.c: * generic/tclCmdMZ.c: Changed to use new Unicode string interfaces for better performance. * generic/tclRegexp.h: * generic/tclRegexp.c: * generic/tcl.h: * generic/tcl.decls: Added Tcl_RegExpMatchObj and Tcl_RegExpGetInfo calls to access lower level regexp API. These features are needed by Expect. This is a preliminary implementation pending final review and cleanup. * generic/tclCmdMZ.c: * tests/string.test: Fixed bug where string map failed on null strings.
* * tests/string.test:hershey1999-06-081-1/+30
| | | | | | | | | | | | | | | | | | | | | | | * generic/tclVar.c (Tcl_SetVar2Ex): * generic/tclStringObj.c (Tcl_AppendObjToObj): * generic/tclCmdMZ.c (Tcl_StringObjCmd): optimized the string index, string length, string range, and append command in cases where the object's internal rep is a bytearray. Objects with other internal reps are converted to have the new unicode internal rep. * unix/Makefile.in: * win/Makefile.in: * win/Makefile.vc: * tests/unicode.test: * generic/tclInt.h: * generic/tclObj.c: * generic/tclUnicodeObj.c: added a new object type to store the unicode representation of a string. * generic/tclTestObj.c: added the objtype option to the testobj command. This option returns the name of the type of internal rep an object has.
* * generic/tclCmdMZ.c (Tcl_StringObjCmd):stanton1999-06-031-4/+22
| | | | | * tests/string.test: Fixed bug where string equal/compare -nocase reported wrong result on null strings. [Bug: 2138]
* Merged changes from scriptics-tclpro-1-3-b2 branchstanton1999-05-221-32/+132
|
* * tests/string.test:stanton1999-05-061-1/+10
| | | | | | * generic/tclCmdMZ.c: * doc/string.n: Fixed bug in string equal/compare code when using -length option. Cleaned up docs a bit more.
* * doc/string.n:stanton1999-05-061-408/+758
| | | | | | | | | | | | | | | | | | | | * tests/cmdIL.test: * tests/cmdMZ.test: * tests/error.test: * tests/ioCmd.test: * tests/lindex.test: * tests/linsert.test: * tests/lrange.test: * tests/lreplace.test: * tests/string.test: * tests/cmdIL.test: * generic/tclUtil.c: * generic/tclCmdMZ.c: Replaced "string icompare/iequal" with -nocase and -length switches to "string compare/equal". Added a -nocase option to "string map". Changed index syntax to allow integer or end?-integer? instead of a full expression. This is much simpler with safeTcl scripts since it avoids double substitution issues.
* * doc/string.n:stanton1999-05-041-4/+4
| | | | | | | * tests/cmdMZ.test: * tests/string.test: * generic/tclCmdMZ.c (Tcl_StringObjCmd): Changed "string length" to avoid regenerating the string rep of a ByteArray object.
* * tests/cmdIL.test:stanton1999-05-041-58/+260
| | | | | | | | | | | | | * tests/cmdMZ.test: * tests/error.test: * tests/lindex.test: * tests/linsert.test: * tests/lrange.test: * tests/lreplace.test: * tests/string.test: * generic/tclCmdMZ.c (Tcl_StringObjCmd): * generic/tclUtil.c (TclGetIntForIndex): Applied Jeff Hobbs's string patch which includes the following changes [Bug: 1845]:
* Tcl_UtfToUpper and Tcl_UtfToTitle now works on badly formed Utf strings.hershey1999-04-301-1/+20
|
* Added tests for string toupper and string tolower called with badly formedhershey1999-04-291-1/+7
| | | | Utf strings.
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-5/+24
|
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-03-261-0/+384