summaryrefslogtreecommitdiffstats
path: root/tests/switch.test
Commit message (Collapse)AuthorAgeFilesLines
* * 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