summaryrefslogtreecommitdiffstats
path: root/tests/subst.test
Commit message (Collapse)AuthorAgeFilesLines
* Convert some non-ASCII characters in testcase comments - which were mangled ↵jan.nijtmans2014-07-171-1/+1
| | | | by my editor in [79ace7b793] - to valid UTF-8: This way my editor will not mangle them again, and fossil will show in the UI which characters are supposed to be there.
* Modify the "gettimes" test-command to use the Tcl_Obj API. jan.nijtmans2014-07-161-4/+8
| | | | New "testbytestring" command which can be used to replace the (to-be-deprecated) "bytestring" command from tcltest and/or the "indentity" encoding. Adapt many testcases to use the "testbytestring" command.
* [f0f876c141] Improve consistency in error messages.dkf2014-06-171-4/+4
|
* Simplify AuxData access with a macro.dgp2013-07-271-0/+4
|
* Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ | | | | cause more harm than good. Purged them (except in zlib files).
| * 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.
| | * * tests/subst.test (subst-12.3-5): More tests for Bug 1036649.dgp2004-10-261-1/+9
| | |
| | * reversed expected result from subst-12.3 to match Tcl 7.6 behavior.dgp2004-10-261-2/+2
| | |
| | * * tests/subst.test (subst-12.3,4): More tests for Bug 1036649.dgp2004-10-261-3/+17
| | |
| | * * tests/subst.test (12.2): test correction.Miguel Sofer2004-09-301-2/+2
| | |
| | * fix for buffer overflow in [subst], [Bug 1036649]Miguel Sofer2004-09-291-1/+18
| | |
| | * * generic/tclCmdMZ.c (Tcl_SubstObj): Corrected and added test fordgp2003-03-121-5/+5
| | | | | | | | | | | | | | | * tests/subst.test (subst-2.4): Tcl_SubstObj's incorrect halting of substitution at the first \x00 byte. [Bug 685106]
| | * * doc/tcltest.n: Added missing "-body" to example. Thanks todgp2003-03-081-1/+5
| | | | | | | | | | | | Helmut Giese. [Bug 700011]
* | | * generic/tclCompile.c: Prevent writing to the intrep fields of adgp2010-10-061-1/+25
| | | | | | | | | | | | * tests/subst.test: freed Tcl_Obj. [Bug 3081065]
* | | * generic/tclCompCmdsSZ.c (TclSubstCompile): If the first token doesdkf2010-04-081-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | not result in a *guaranteed* push of a Tcl_Obj on the stack, we must push an empty object. Otherwise it is possible to get to a 'concat1' or 'done' without enough values on the stack, resulting in a crash. Thanks to Joe Mistachkin for identifying a script that could trigger this case.
* | | Assorted improvements to make better use of tcltest2dkf2008-04-231-46/+49
|/ /
* | * generic/tclParse.c (Tcl_SubstObj): Fix for failed subst-12.3 test.dgp2004-10-261-1/+9
| | | | | | | | * tests/subst.test (subst-12.3-5): More tests for Bug 1036649.
* | Reversed expected result from test subst-12.3.dgp2004-10-261-2/+2
| |
* | * tests/subst.test (subst-12.3,4): More tests for Bug 1036649.dgp2004-10-261-1/+17
| |
* | * tests/subst.test (12.1-2): added tests for [Bug 1036649]Miguel Sofer2004-09-301-1/+16
| |
* | * generic/tclBasic.c (Tcl_EvalTokensStandard):dgp2003-03-131-10/+14
|/ | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdMZ.c (Tcl_SubstObj): * generic/tclCompCmds.c (TclCompileSwitchCmd): * generic/tclCompExpr.c (CompileSubExpr): * generic/tclCompile.c (TclSetByteCodeFromAny,TclCompileScript, TclCompileTokens,TclCompileCmdWord): * generic/tclCompile.h (TclCompileScript): * generic/tclExecute.c (TclCompEvalObj): * generic/tclInt.h (Interp,TCL_BRACKET_TERM,TclSubstTokens): * generic/tclParse.c (ParseTokens,Tcl_SubstObj,TclSubstTokens): * tests/subst.test (2.4, 8.7, 8.8, 11.4, 11.5): Substantial refactoring of Tcl_SubstObj to make use of the same parsing and substitution procedures as normal script evaluation. Tcl_SubstObj() moved to tclParse.c. New routine TclSubstTokens() created in tclParse.c which implements all substantial functioning of Tcl_EvalTokensStandard(). TclCompileScript() loses its "nested" argument, the Tcl_Interp struct loses its termOffset field and the TCL_BRACKET_TERM flag in the evalFlags field, all of which were only used (indirectly) by Tcl_SubstObj(). Tests subst-8.7,8.8,11.4,11.5 modified to accomodate the only behavior change: reporting of parse errors now takes precedence over [return] and [continue] exceptions. All other behavior should
* Don Porter's fix for bad parsing of nested scripts [Bug 681841].Miguel Sofer2003-02-161-3/+3
|
* * tests/subst.test: added 5.8-10 as further tests for [Bug 495207]Miguel Sofer2002-08-081-1/+15
|
* * Corrected [subst] so that return codesdgp2002-04-051-1/+13
| | | | | | TCL_BREAK and TCL_CONTINUE returned by variable substitution have the same effect as when those codes are returned by command substitution. [Bug 536879]
* avoiding a buffer overrun in [subst]; restoring tcl7.6 behaviour [Bug #495207]Miguel Sofer2002-02-251-1/+13
|
* TIP#36 implementation. Also includes cleanup for subst optiondkf2001-07-121-8/+8
| | | | | handling and improved documentation for the subst command (in my capacity as maintainer of the Commands M-Z functional area.)
* * tests/subst.test:hobbs2001-06-281-1/+6
| | | | | * generic/tclUtf.c (Tcl_UtfBackslash): Corrected backslash handling of multibyte utf-8 chars. [Bug #217987]
* * tests/subst.test: added tests for non-zero return code handlinghobbs2000-11-011-14/+66
| | | | | | by subst. * generic/tclParse.c (Tcl_EvalEx): corrected handling of non-zero, non-error return code cases for subst. [BUG: 119829]
* * 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-3/+22
|
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-03-261-0/+106