summaryrefslogtreecommitdiffstats
path: root/tests/switch.test
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclCmdMZ.c (Tcl_SwitchObjCmd): [Bug 3106532]: Correcteddkf2012-05-171-6/+16
| | | | | | | | | resulting indexes from -indexvar option to be usable with [string range]; this was always the intention (and is consistent with [regexp -indices] too). ***POTENTIAL INCOMPATIBILITY*** Uses of [switch -regexp -indexvar] that previously compensated for the wrong offsets (by subtracting 1 from the end indices) now do not need to do so as the value is correct.
* Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
|\ | | | | more harm than good. Purged them.
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | more harm than good. Purged them.
* | Added more tests of regexp-mode compilation of the [switch] command. [Bug ↵dkf2008-03-211-1/+107
| | | | | | | | 1854435]
* | Fix [Bug 1891827]dkf2008-02-121-1/+7
| |
* | * generic/tclCompCmds.c (TclCompileSwitchCmd): update switch -regexphobbs2007-12-191-1/+36
| | | | | | | | | | | | * tests/switch.test-14.*: compilation to pass the cflags to INST_REGEXP (changed on 12-07). Added tests for switch -regexp compilation (need more). [Bug 1854399]
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | Make two-arg switch work reliably (and actually as documented!) [Bug 1836519]dkf2007-12-031-187/+180
| |
* | * tests/*.test: updated all tests to refer explicitly to thetip_278_20061009Miguel Sofer2006-10-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | eliminate test name duplicationdgp2005-12-021-8/+8
| |
* | * generic/tclCmdMZ.c (Tcl_SwitchObjCmd): Generatemdejong2005-06-201-1/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | an error if a mode argument like -exact is passed more than once to the switch command. The previous implementation silently accepted invalid switch invocations like [switch -exact -glob $str ...]. * tests/for.test: Check some error cases when invoking continue and break inside a for loop next script. * tests/switch.test: Add checks for shortened version of a mode argument like -exact. Add test for more than one mode argument. Add test for odd case of passing a variable as a body script.
* | Implementation of TIP#241 from Joe Mistachkindkf2005-06-011-2/+50
| | | | | | | | Also compilation of [switch -glob -nocase] from Donal Fellows
* | Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+1
| |
* | Test updates for new [switch] compilerdkf2005-04-081-17/+63
| |
* | TIP#75 Implementationdkf2003-12-141-2/+95
| |
* | Default mode of operation of [switch] is exact matching. [Bug 727563]dkf2003-04-281-2/+21
| |
* | The [switch] command is now bytecode compiled, at least in the most commondkf2003-03-051-1/+129
|/ | | | | case. There's room for improvement in the future, of course. [Patch #644819] Also adds another macro to help with jump offset fixups.
* Tightened up the argument passing for [switch] to promote robuster scripts.dkf2001-11-271-15/+34
|
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
* 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
|
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-4/+23
|
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-03-261-0/+179