summaryrefslogtreecommitdiffstats
path: root/tests/regexp.test
Commit message (Collapse)AuthorAgeFilesLines
* * tests/regexp.test: Add test cases back ported frommdejong2010-02-211-1/+111
| | | | | | Jacl regexp work. FossilOrigin-Name: fdacdda25298e3e3271c7afe82d0e6c1b0813e66
* Tcl Bug 2826551 regexp bugs related to -all -line and -start and newlinesdkf2010-02-111-25/+279
| | | FossilOrigin-Name: 2a54ee5bded043d400d62415073bdece087cec25
* * tests/regexp.test: Added check for error message frommdejong2009-09-211-1/+13
| | | | | | | unbalanced [] in regexp. Added additional simple test cases of basic regsub command. FossilOrigin-Name: e0b2e1cb8908da865f655ea9532d5c5f643b3d6c
* * tests/regexp.test, tests/regexpComp.test: correct re2glob ***=hobbs2008-08-211-1/+26
| | | | | | | * generic/tclUtil.c (TclReToGlob): translation from exact to anywhere-in-string match. [Bug 2065115] FossilOrigin-Name: 6e9764c87ca430b537357b98742cb15ab837adfa
* fix [2021443] inconsistant "wrong # args" messages (follow-up)nijtmans2008-07-211-3/+3
| | | FossilOrigin-Name: cfc8157c41627729e35e1d1f472ff1756fcddd5b
* fix [2021443] inconsistant "wrong # args" messages (follow-up)nijtmans2008-07-211-7/+7
| | | FossilOrigin-Name: 395eaa2623b2540e0cb48daab4369053acb0f8d0
* * generic/tclCompCmds.c (TclCompileRegexpCmd): TCL_REG_NOSUB cannothobbs2007-12-231-1/+4
| | | | | | | * tests/regexp.test (regexp-22.2): be used because it * tests/regexpComp.test: [Bug 1857126] disallows backrefs. FossilOrigin-Name: 3abe8cff9789adc21fb60e57f475687bd613b3b9
* merge stable branch onto HEADdgp2007-12-131-1/+1
| | | FossilOrigin-Name: d1f7550cd9bf1343d8505fb99fc5141b58bb88bf
* * generic/regc_nfa.c: Fixed infinite loop in the regexp compiler.dgp2007-11-151-1/+6
| | | | | | [Bug 1810038]. FossilOrigin-Name: b20eee044bad35621c693544a208dc3d77b09fd1
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232kennykb2005-05-101-1/+1
| | | FossilOrigin-Name: 1cc2336920c70c6b9f7825b88dec87fc223f2c4e
* TIP#176 IMPLEMENTATION [Patch 1165695]dgp2005-04-291-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* regsub fixvincentdarley2003-10-141-1/+14
| | | FossilOrigin-Name: 67a6ac61094d7af4f5b22e847cc32632e85f5dfb
* * tests/regexp.test: Matched [makeFile] with [removeFile].dgp2003-10-071-6/+10
| | | | | | * tests/regexpComp.test: [Bug 675652] FossilOrigin-Name: 1aecb14fff18caf165f07c3598527f65fe053f67
* regsub empty string fixes, and windows buildvincentdarley2003-06-171-1/+41
| | | FossilOrigin-Name: 6f6bf2acacc69bd8e4a5f83dde24ee5ecbc54d1e
* * Cleaned up, constrained, and reduced the amount of [exec] usagedgp2002-07-101-5/+6
| | | | | | in the test suite. FossilOrigin-Name: b0f3dfed629f8e4c506365bc62ba4dd7900a03c6
* Made many tests work properly when the current directory is not writable.dkf2002-07-051-3/+2
| | | | | | Added targets to unix/Makefile.in to facilitate testing of this situation. FossilOrigin-Name: 725b23357f2845f2c1d887777bc6ed9dd86a8161
* couple extra testshobbs2002-03-011-1/+11
| | | FossilOrigin-Name: fbdc4fa84146c88fa1ba0bc1b1d8ecbf5c49af71
* Added TIP#76 implementation, docs + tests.dkf2002-02-221-8/+20
| | | FossilOrigin-Name: 77072a000c9854e337beb712e0ba2487058a3699
* extra code coverage caseshobbs2002-02-071-1/+4
| | | FossilOrigin-Name: f29484391eefc0e529c3666e5b68fef7fd4e151c
* test case for bug #461322hobbs2001-09-191-1/+10
| | | FossilOrigin-Name: 8234ed9fb0b68aa33e54a30d107b9407f45d243d
* Fix for bug #219232 (submatch errors with regexp -all -inline -indices)dkf2001-06-121-1/+4
| | | FossilOrigin-Name: f2e4ec3026f4c29c17aa6c425cd9b2fa36a85cc0
* * tests/regexp.test (regexp-19.1):hobbs2001-03-281-15/+5
| | | | | | | * generic/tclCmdMZ.c (Tcl_RegsubObjCmd): fixed handling of nulls in subspec value. FossilOrigin-Name: 73865f2ba97eacc953d300af8719451edac260ed
* * generic/tclCmdMZ.c (Tcl_RegexpObjCmd): When using -all, allericm2000-09-201-1/+5
| | | | | | | | | attempts after the first to match the regexp against the string should include the TCL_REG_NOTBOL flag, to avoid erroneously matching ^ in the middle of the string. Added code to set this flag after the first pass through the matching loop. [Bug: 6284]. FossilOrigin-Name: 9c141af9b52fb6038a2a4bfa2d38319e72b54c45
* * win/tclWinPipe.c (TclpCreateTempFile): Added conversion ofericm2000-04-101-1/+24
| | | | | | | | | | contents string from UTF to native encoding [Bug: 4030]. * tests/regexp.test: Added tests for infinite looping in [regexp -all]. * generic/tclCmdMZ.c: Fixed infinite loop bug with [regexp -all] [Bug: 4981]. FossilOrigin-Name: 1908ebdc39b71cc7648c9ccca12713c005201b83
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948]. FossilOrigin-Name: c2f93a113cfcb17a21da67cc20f54ab3f1b9fa3c
* * tests/regexp.test: added tests for -all and -inline switcheshobbs2000-02-021-12/+50
| | | | | | | | * doc/regexp.n: added docs for -all and -inline switches * generic/tclCmdMZ.c (Tcl_RegexpObjCmd): added extra comments for new -all and -inline switches to regexp command FossilOrigin-Name: 9176c9a50b9d3ad8a6bba20cd9e6aae6a846b16c
* 1999-09-16 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-09-211-3/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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) FossilOrigin-Name: eb68adcdfd2b621fe83410354568df693c95a1fc
* * tests/tcltest.test: Added additional tests for -tmpdir, markedjenn1999-08-231-3/+9
| | | | | | | | | | | | | | | | all tests that use exec as unixOrPc. * tests/encoding.test: * tests/interp.test: * tests/macFCmd.test: * tests/parseOld.test: * tests/regexp.test: Applied patches from Jim Ingham to add encoding to a Mac only interp test, change an error message in macFCmd.tet, put a comment in parseOld.test, fix tests using the testencoding path command, and put unixOrPc constraints on tests that use exec. FossilOrigin-Name: 13304f0d0d02e8e4244e1e51ab5e3e8479f962f2
* 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. FossilOrigin-Name: dbfd75f43f496269e869e2fbd58f86e25bdcef4c
* Modified the tests to use the package tcltestjenn1999-06-261-3/+4
| | | FossilOrigin-Name: fdb0602e41e62bf526806c165dbf3f33a718fd37
* * tests/regexp.test:stanton1999-06-171-14/+37
| | | | | | | | * generic/tclCmdMZ.c: * generic/tclCmdIL.c: Changed to use new regexp interfaces. Added -expanded, -line, -linestop, and -lineanchor switches to regsub. FossilOrigin-Name: 439ccec547a90871da17d1da29b0328c8a386d59
* Merged changes from scriptics-tclpro-1-3-b2 branchstanton1999-05-221-2/+5
| | | FossilOrigin-Name: f692388d0781830f1c23ef04ebbfb509ecc8d671
* * tests/regexp.test:stanton1999-05-131-1/+27
| | | | | | | | | | | | | | * generic/tclInt.h: * generic/tclBasic.c: * generic/tclRegexp.h: * generic/tclRegexp.c: Replaced the per-interpreter regexp cache with a per-thread cache. Changed the Regexp object to take advantage of this extra cache. Added a reference count to the TclRegexp type so regexps can be shared by multiple objects. Removed the per-interp regexp cache from the interpreter. Now regexps can be used with no need for an interpreter. [Bug: 1063] FossilOrigin-Name: 2e8f1dd6ab40a0a67e71dfa9b45e818ef94267f2
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-11/+71
| | | FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9
* Replaced SCCS strings, fixed binary filescore-8-0-3stanton1998-09-141-1/+1
| | | FossilOrigin-Name: 196f92fd17305db5fec1acd59f6926de11e01624
* Initial revisionrjohnson1998-03-261-0/+318
FossilOrigin-Name: f86c34e38d2a946e0ed196001fd756c57f90791a