summaryrefslogtreecommitdiffstats
path: root/tests/stringObj.test
Commit message (Collapse)AuthorAgeFilesLines
* * tests/stringObj.test: Test stringObj-6.9 checks thatdgp2009-03-211-1/+7
| | | | | Tcl_AppendStringsToObj() no longer crashes when operating on a pure unicode value. [Bug 2597185]
* * generic/tclStringObj.c: Factor out common GrowStringBuffer().dgp2009-02-171-2/+2
| | | | | | | | | | | * generic/tclStringObj.c: Convert Tcl_AppendStringsToObj into * tests/stringObj.test: a radically simpler implementation where we just loop over calls to Tcl_AppendToObj. This fixes [Bug 2597185]. It also creates a *** POTENTIAL INCOMPATIBILITY *** in that T_ASTO can now allocate more space than is strictly required, like all the other Tcl_Append* routines. The incompatibility was detected by test stringObj-6.5, which I've updated to reflect the new behavior.
* * generic/tclTestObj.c: Replace the [teststringobj ualloc] testingdgp2009-02-161-3/+3
| | | | | * tests/stringObj.test: command with [teststringobj maxchars] and update the tests.
* * generic/tclStringObj.c: Added protections from invalid memorydgp2009-02-161-1/+35
| | | | | | | * generic/tclTestObj.c: accesses when we append (some part of) * tests/stringObj.test: a Tcl_Obj to itself. Added the appendself and appendself2 subcommands to the [teststringobj] testing command and added tests to the test suite. [Bug 2603158]
* Fix [Bug 2006888]dkf2009-01-291-46/+45
|
* * tests/stringObj.test: Revise tests that demand a NULL Tcl_ObjTypedgp2009-01-061-13/+26
| | | | | | in certain values to construct those values with [testdstring] so there's no lack of robustness depending on the shimmer history of shared literals.
* Massive test cleanup; all tests are run, and constraints are used where ↵dkf2004-05-191-67/+64
| | | | necessary.
* correct test nameshobbs2003-02-111-3/+3
|
* * tests/stringObj.test:hobbs2003-02-111-13/+8
| | | | | * generic/tclStringObj.c (Tcl_GetCharLength): correct ascii char opt of 2002-11-11 to not stop early on \x00. [Bug #684699]
* execution trace, command trace and stringObj bug fixesvincentdarley2003-01-171-2/+2
|
* 3 small fixesvincentdarley2002-11-131-1/+12
|
* * tests/stringObj.test: Tweaked tests to avoid hardcodedericm2000-06-281-9/+30
| | | | | high-ASCII characters (which will fail in multibyte locales); instead used \uXXXX syntax. [Bug: 3842].
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
* 1999-09-01 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-09-021-1/+18
| | | | | | | | | | | | | * generic/tclParseExpr.c: changed '"' to '\"' to make FreeBSD happy [Bug: 2625] * generic/tclProc.c: moved static buf to better location and changed static msg that would overflow in ProcessProcResultCode [Bug: 2483] and added Tcl_DStringFree to Tcl_ProcObjCmd. Also reworked size of static buffers. * tests/stringObj.test: added test 9.11 * generic/tclStringObj.c: changed Tcl_AppendObjToObj to properly handle the 1-byte dest and mixed src case where both had had Unicode string len checks made on them. [Bug: 2678]
* 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
|
* beefed up the string object testshershey1999-06-151-70/+92
|
* Improved the appendObj functions (uncomented the optimized code that washershey1999-06-151-96/+81
| | | | | | | | | present in the Unicode obj). Updated the teststringobj command to look in the correct location for the amount of space allocated for the UTF string rep. Note: one stringObj test is still failing; it reflects a change in that may not be undesirable...
* Merged String and Unicode object types. Added new functions tohershey1999-06-151-1/+180
| | | | | | | | | the puplic API: Tcl_NewUnicodeObj, Tcl_SetUnicodeObj, Tcl_GetUnicode, Tcl_GetUniChar, Tcl_GetCharLength, Tcl_GetRange, Tcl_AppendUnicodeToObj. Note: some stringObj tests are still failing--the teststringobj command still needs to be updated.
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-3/+23
|
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-03-261-0/+189