summaryrefslogtreecommitdiffstats
path: root/tests/cmdIL.test
Commit message (Collapse)AuthorAgeFilesLines
* [Bug 2918962]: Stop crash when -index and -stride are used together in [lsort].dkf2009-12-221-1/+7
| | | FossilOrigin-Name: b246bea842f143c5b969e824e03ad1f811d4b3cd
* TIP #326 IMPLEMENTATIONdkf2008-09-291-3/+21
| | | FossilOrigin-Name: e0ff4dac80e4d674f4b9d783407fca1ca4dbdf63
* TIP #323 IMPLEMENTATION (partial)dgp2008-09-261-7/+7
| | | | | | | | * doc/lassign.n: Revise [lassign] to accept zero variable names. * generic/tclCmdIL.c: * tests/cmdIL.test: FossilOrigin-Name: 242df9962b4938db184f519135112726e783dd1c
* Use the powers of tcltest2 for good! Also add basic testing of disassmblerdkf2008-09-101-226/+144
| | | | | | (though not of its output format). FossilOrigin-Name: 677f3de5be6eecbfdffcbc5dad8679bcf673c6b8
* more consistent wrong # arg messages: change all messages containing ↵nijtmans2008-07-131-2/+2
| | | | | ?options? to the form ?-option value ...? FossilOrigin-Name: 7dcec0e5e289de4aed4290b3ee93e1e425c765e0
* eliminate duplicate test namesdgp2008-02-131-2/+2
| | | FossilOrigin-Name: cfc3f859c7a8753bfaf09fe238869da645870fff
* * generic/tclCmdIl.c (Tcl_LreverseObjCmd):msofer2008-01-221-1/+4
| | | | | | | * tests/cmdIL.test (cmdIL-7.7): fix crash on reversing an empty list [Bug 1876793]. FossilOrigin-Name: 5202be705d52fe76d17c63054ea98d89504fd70f
* * generic/tclCmdIL.c: speed patch for lsort [Patch 1856994].msofer2007-12-231-1/+4
| | | FossilOrigin-Name: 7a28facee158389e51228cbdf2f19308a55d3575
* merge stable branch onto HEADdgp2007-12-131-1/+1
| | | FossilOrigin-Name: d1f7550cd9bf1343d8505fb99fc5141b58bb88bf
* * generic/tclIOCmd.c: Revise [open] so that it interprets leadingdgp2007-10-151-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Added test for [Bug 1675044].dgp2007-03-131-1/+18
| | | FossilOrigin-Name: b13b57ba58f6a84525bb1b78a27d22cd6c76ca98
* Fix [Bug 1675116]dkf2007-03-091-1/+5
| | | FossilOrigin-Name: 2130325c40842420e993528566f801a72c969941
* * generic/tclCmdIL.c (Tcl_LreverseObjCmd): Added missingdgp2007-03-021-1/+4
| | | | | | | TclInvalidateStringRep() call when we directly manipulate the intrep of an unshared "list" Tcl_Obj. [Bug 1672585]. FossilOrigin-Name: bd0656f21a4eeddf4b3edfa06f11f7030382499d
* Optimize for the unshared case.dkf2006-11-091-3/+7
| | | FossilOrigin-Name: 81b71d3d1d9ccaa4212fa4ee1fcbf5c30a7dbb87
* Implemented [lreverse] from TIP#272dkf2006-11-091-1/+14
| | | FossilOrigin-Name: adc8734872c1f5f4245f246de107d92b31ff7a38
* * tests/*.test: updated all tests to refer explicitly to thetip-278-20061009msofer2006-10-091-2/+2
| | | | | | | | | | | | | | | | global variables ::errorInfo, ::errorCode, ::env and ::tcl_platform: many were relying on the alternative lookup in the global namespace, that feature is tested specifically in namespace and variable tests. The modified testfiles are: apply.test, basic.test, case.test, cmdIL.test, cmdMZ.test, compExpr-old.test, error.test, eval.test, event.test, expr.test, fileSystem.test, for.test, http.test, if.test, incr-old.test, incr.test, interp.test, io.test, ioCmd.test, load.test, misc.test, namespace.test, parse.test, parseOld.test, pkg.test, proc-old.test, set.test, switch.test, tcltest.test, thread.test, var.test, while-old.test, while.test. FossilOrigin-Name: a8fcd798f4d17d4d3c958b65f206e78267d99627
* Error message consistency improvements. [Bug 1534628]dkf2006-08-091-5/+5
| | | FossilOrigin-Name: 086978a2d58808bea9d46114164a376628e11b57
* Implementation of TIP#241 from Joe Mistachkindkf2005-06-011-2/+8
| | | | | | Also compilation of [switch -glob -nocase] from Donal Fellows FossilOrigin-Name: 1dd087938136afe1bd1ff08d596b1746dcbd2363
* 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-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* TIP#217 implementationdkf2004-10-141-2/+8
| | | FossilOrigin-Name: 2f692ebdfa2f1ec60d2c26cbc222b81f425f4222
* Full bytecode compilation for [lassign]dkf2004-01-181-49/+262
| | | FossilOrigin-Name: 9a1a37c9ae8a0c2d9d0ec664e9850a5c7e944a12
* Fix a shimmering bugdkf2004-01-171-1/+5
| | | FossilOrigin-Name: 0d952b7fa6387fc3c7a18fc00b0fdbb084a05762
* Minor fixes and update of UNIX documentation installerdkf2004-01-171-4/+4
| | | FossilOrigin-Name: 62cc8bc440e0cea1ca24723a50b1871858017352
* Basic implementation of TIP#57 - TclX's [lassign] command into Tcl coredkf2004-01-171-1/+83
| | | | | | | | | Not a direct copy * Better use of Tcl object API * More extensive test suite * More extensive documentation FossilOrigin-Name: 57030a2c1d3cf04ae0e21b59c04b33dd59b1662f
* Make cmdIL.test more self-contained [Bug 838384]dkf2003-11-101-29/+50
| | | FossilOrigin-Name: b27e450c20a0ee3b543f7ed18815e57ee3fa961b
* Test to detect a sharing problem with TIP#127 exposed in tclbenchdkf2003-10-141-1/+10
| | | | | | Thanks DGP for helping develop this. FossilOrigin-Name: cd19c5a7b43a8ecd0bb7c440d0112a5fc0c35be2
* TIP#127 Implementation. Thanks to Michael Schlenker for his implementation workdkf2003-10-141-1/+32
| | | FossilOrigin-Name: 3dfa4104f61375bf5a5b08948cb93f7ff83cca2f
* Fixed error message to be less confusing [Bug 771539]dkf2003-07-151-2/+2
| | | FossilOrigin-Name: ee0705160be23cdb7ea3fb0ab20e65b3725256e1
* Fixed Bug #465674 reported by me. [lsort -index end-1] now behaves sensibly...dkf2001-09-281-1/+7
| | | FossilOrigin-Name: 3a02710e2f6052b9c11de4dbd3d19b010828aa7d
* * tests/cmdIL.test: Added a test for fix for [Bug: 6212].ericm2000-09-171-1/+17
| | | | | | | * generic/tclCmdIL.c (Tcl_LsortObjCmd): Applied patch from [Bug: 6212], which corrected an error in the handling of the -index option. FossilOrigin-Name: fe4c99079c5f379f5800a48ebe1e7abe56dfebf2
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948]. FossilOrigin-Name: c2f93a113cfcb17a21da67cc20f54ab3f1b9fa3c
* * tests/cmdIL.test: Added tests for lsort -dictionary withericm2000-01-131-1/+19
| | | | | | | | | | | | characters that occur between Z and a in ASCII. * generic/tclCmdIL.c: Modified DictionaryCompare function (used by lsort -dictionary) to do upper/lower case equivalency before doing character comparisons, instead of after. This fixes bug #1357, in which lsort -dictionary [list ` AA c CC] and lsort -dictionary [list AA c ` CC] gave different (and both wrong) results. FossilOrigin-Name: be988a1220696cef4c8be83ff6ef9270648cc35c
* * tests/cmdIL.test:hobbs1999-12-211-5/+12
| | | | | | * generic/tclCmdIL.c: added -unique option to lsort FossilOrigin-Name: cffdbd72e307c9b9faffacda02626985805a43e0
* Modified the tests to use the package tcltestjenn1999-06-261-2/+3
| | | FossilOrigin-Name: fdb0602e41e62bf526806c165dbf3f33a718fd37
* * doc/string.n:stanton1999-05-061-14/+2
| | | | | | | | | | | | | | | | | | | | | | * 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. FossilOrigin-Name: fb86d777335b2ac849402a221620f256735bb566
* * tests/cmdIL.test:stanton1999-05-041-2/+2
| | | | | | | | | | | | | | | * 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]: FossilOrigin-Name: 2728afa3b5f0b6707d8655c44ac742ffa5dba059
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-5/+35
| | | FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9
* Fixed bug in Tcl_SetListObj - it used to create invalid Tcl_Obj if you passedrjohnson1998-10-131-1/+2
| | | | | | | | in 0 elements. Despite what docs said. Also updated a few copyright notices. FossilOrigin-Name: 485b7d35e6ae018a44806b79953dc8bbcf700ab8
* Fixed bug in "lsort -dictionary" that caused problems when comparingrjohnson1998-10-131-11/+14
| | | | | | numbers that started with 0. FossilOrigin-Name: bdfc546373733aab3cedcbc85dff3f5d60f4fd74
* Replaced SCCS strings, fixed binary filescore-8-0-3stanton1998-09-141-1/+1
| | | FossilOrigin-Name: 196f92fd17305db5fec1acd59f6926de11e01624
* *** empty log message ***stanton1998-06-181-0/+38
| | | FossilOrigin-Name: 1d4fda1f1e8e794d8a3a11dca93ddc21259bf04f
* Initial revisionrjohnson1998-03-261-0/+253
FossilOrigin-Name: f86c34e38d2a946e0ed196001fd756c57f90791a