summaryrefslogtreecommitdiffstats
path: root/tests/expr-old.test
Commit message (Collapse)AuthorAgeFilesLines
* Thanks to TIP #587, convert many escapes in the testcases into the actual ↵jan.nijtmans2021-03-301-10/+10
| | | | (UTF-8) character.
* TIP 590: Recommend lowercase Package Namesjan.nijtmans2020-12-041-1/+1
|\
| * Merge 8.7. Tweak "tclreg" directory/library name and tclLoad.c, such that ↵jan.nijtmans2020-11-101-1/+1
| |\ | | | | | | | | | the entry point of the "dde" and "registry" extensions can be guessed correctly
| * | Case-sensitive package namesjan.nijtmans2020-11-031-1/+1
| | |
* | | More ©-sign consolidationjan.nijtmans2020-11-231-1/+1
| | |
* | | Now that all Tcl source files are UTF-8 by default, we can use the ©-sign ↵jan.nijtmans2020-11-231-3/+3
| |/ |/| | | | | whenever reasonable.
* | Merge 8.7dkf2020-11-011-4/+4
|\ \ | |/
| * Merge 8.6jan.nijtmans2020-10-261-4/+4
| |\
| | * Fix [48898ab5f6a0d957]: Too few is better than not enough? (Inconsistent ↵jan.nijtmans2020-10-261-4/+4
| | | | | | | | | | | | error messages)
* | | Merge 8.7jan.nijtmans2020-10-241-2/+4
|\ \ \ | |/ /
| * | Merge 8.6jan.nijtmans2020-09-041-2/+4
| |\ \ | | |/
* | | Implementation of TIP 582: comments in expressionsdkf2020-08-221-1/+1
|/ /
* | Merge 8.7jan.nijtmans2018-09-031-6/+11
|\ \
| * | Eliminate use of wideBiggerThanInt test constraint, since it's the same as ↵jan.nijtmans2018-09-031-1/+2
| | | | | | | | | | | | | | | | | | {longIs32bit wideIs64bit}. And ... it's name is actually wrong ... Don't use int() any more in any test constraint, since it's semantics might change. We don't want the test constraints to change with it. (See: TIP# 514) Simplify implementation of wideIs64bit test constraint, just testing for 64-bit sign bit is enough.
* | | Now, restore wide(), but make int() the same as entier(). Add new utility ↵jan.nijtmans2018-08-281-2/+2
|/ / | | | | | | function.
* | merge core-8-branch. Deprecate support for "string bytelength"jan.nijtmans2017-11-201-4/+16
|\ \
| * | Fix error-message for min/math functions: "to" -> "for", for consistancy ↵jan.nijtmans2017-11-201-4/+16
| | | | | | | | | | | | with the error-messages for other math functions.
* | | TIP #485 implementation: "Remove Deprecated API". Based on Tcl 8.7 ↵jan.nijtmans2017-11-081-17/+0
|/ / | | | | | | (core-8-branch).
* | Eliminate exess spacings in many test-casesjan.nijtmans2016-03-101-4/+4
|/
* For Parse/eval & msgcat, select modernizations from Patrick Fradin + -debug fixdgp2013-01-301-8/+6
|\
| * For Parse/eval, select modernizations from Patrick Fradin.dgp2013-01-301-8/+6
| |
* | No longer build tcltest.exe to run the tests,but use tclsh86.exe in ↵jan.nijtmans2012-07-291-0/+3
|/ | | | combination with tcltest86.dll to do that (Windows only)
* 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.
| * * generic/tclExecute.c (ExprSrandFunc): Restore acceptance of widedgp2006-05-041-2/+2
| | | | | | | | * tests/expr-old.test: integer values by srand() [Bug 1480509].
| * * tests/expr-old.test (expr-32.52): Use int(.) to restrictdgp2005-11-011-2/+2
| | | | | | | | result of left shift to the C long range.
| * niggly test suite fixesdgp2004-11-031-2/+2
| |
| * added support for wide integers to round(); [Bug 908375], reported byMiguel Sofer2004-07-031-1/+16
| | | | | | | | Hemang Lavana.
| * More elimination of dup test numbers [Bugs 710365, 710369]dkf2003-03-271-7/+7
| |
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tclIOCmd.c: Revise [open] so that it interprets leadingdgp2007-10-151-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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:
* | * tests/expr-old.test: The remaining failing tests reported indgp2006-08-311-2/+2
| | | | | | | | | | | | * tests/expr.test: [Bug 1381715] are all new in Tcl 8.5, so there's really no issue of compatibility with Tcl 8.4 result to deal with. Fixed by updating tests to expect 8.5 results.
* | * tests/compExpr-old.test: Update existing tests to not faildgp2006-08-221-70/+66
| | | | | | | | | | | | | | | | | | | | | | * tests/compExpr.test: with the new expr parser. * tests/compile.test: * tests/expr-old.test: * tests/expr.test: * tests/for.test: * tests/if.test: * tests/parseExpr.test: * tests/while.test:
* | * tests/compExpr-old.test: add 'oldExprParser' constraint to all testsdas2006-08-021-24/+28
| | | | | | | | | | | | | | | | | | | | | | * tests/compExpr.test: that depend on the exact format of the error * tests/compile.test: messages of the pre-2006-07-05 expression * tests/expr-old.test: parser. The constraint is on by default (i.e. * tests/expr.test: those test still fail), but it can be turned * tests/for.test: off by passing '-constraints newExprParser' * tests/if.test: to tcltest, which will skip the 196 failing * tests/parseExpr.test: tests in the testsuite that are caused by * tests/while.test: the new expression parser error messages.
* | * generic/tclParseExpr.c: Completely new expression parserdgp2006-07-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that builds a parse tree instead of operating with deep recursion. This corrects reports of stack-blowing crashes parsing long expressions [Bug 906201] and replaces a fundamentally O(N^2) algorithm with an O(N) one [RFE 903765]. The new parser is better able to generate error messages that clearly report both the nature and context of the syntax error [Bugs 1029267, 1381715]. For now, the code for the old parser is still present and can be activated with a "#define OLD_EXPR_PARSER 1". This is for the sake of a clean implementation patch, and for ease of benchmarking. The new parser is non-recursive, so much lighter in stack consumption, but it does use more heap, so there may be cases where parsing of long expressions that succeeded with the old parser will lead to out of memory panics with the new one. There are still more improvements possible on that point, though significant progress may require changes to the Tcl_Token specifications documented for the public Tcl_Parse*() routines. ***POTENTIAL INCOMPATIBILITY*** for any callers that rely on the exact (usually terrible) error messages generated by the old parser. This includes a large number of tests in the test suite. * generic/tclInt.h: Replaced TclParseWhiteSpace() with * generic/tclParse.c: TclParseAllWhiteSpace() which is what * generic/tclParseExpr.c: all the callers really needed. Breaking whitespace runs at newlines is useful only to the command parsing function, and it can call the file scoped routine ParseWhiteSpace() to do that. * tests/expr-old.test: Removed knownBug constraints that masked * tests/expr.test: failures due to revised error messages. * tests/parseExpr.test:
* | * tests/compExpr-old.test: Updated testmathfunctions constraintdgp2006-04-061-2/+2
| | | | | | | | | | | | | | | | | | | | * tests/compExpr.test: to post-TIP-232 world. * tests/expr-old.test: * tests/expr.test: * tests/info.test: * tests/indexObj.test: Corrected other test errors revealed by * tests/upvar.test: testing outside the tcltest application.
* | Added knownBug constraints.dgp2006-03-211-3/+3
| |
* | Use test constraints properly instead of looking in tcl_platformdkf2006-03-211-8/+8
| | | | | | | | | | Consistent method of calling test constraints, and (try to) move constraint setup to the top of the test file
* | * tests/compile.test: Updated tests with changed behaviordgp2005-11-091-54/+54
| | | | | | | | | | | | | | | | | | * tests/execute.test: due to addition of bignums. * tests/expr-old.test: * tests/expr.test: * tests/parseExpr.test: * tests/platform.test: * tests/string.test:
* | * tests/unixNotfy.test (1.1,2): Update error message whitespace todgp2005-11-011-2/+2
| | | | | | | | | | | | | | match changes in code. * tests/expr-old.test (expr-32.52): Use int(.) to restrict result of left shift to the C long range.
* | Marked several failing tests as "knownBug" until they can be updated.dgp2005-10-211-20/+20
| |
* | TIP#237 IMPLEMENTATIONdgp2005-10-081-1/+99
| | | | | | | | | | | | [kennykb-numerics-branch] Resynchronized with the HEAD; at this checkpoint [-rkennykb-numerics-branch-20051008], the HEAD and kennykb-numerics-branch contain identical code.
* | implementation for TIP #255, expr min/maxhobbs2005-09-291-1/+43
| |
* | * tests/compExpr-old.test: Still more conversion of "nonPortable"dgp2005-07-281-24/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | * tests/error.test: tests into tests with constraints that * tests/expr-old.test: describe the limits of their * tests/expr.test: portability. Also more consolidation * tests/fileName.test: of constraint synonyms. * tests/format.test: wideis64bit, 64bitInts => wideIs64bit * tests/get.test: wideIntegerUnparsed => wideIs32bit * tests/load.test: wideIntExpressions => wideBiggerThanInt * tests/obj.test: * tests/parseExpr.test: Dropped "roundOffBug" constraint that * tests/string.test: protected from buggy sprintf.
* | Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-34/+102
| |
* | * generic/tcl.decls:dgp2005-05-021-1/+8
| | | | | | | | | | | | | | * generic/tclBasic.c: Simplified implementation of Tcl_ExprString. * tests/expr-old.test: * generic/tclDecls.h: `make gentstubs`
* | Added test for [1109484]dkf2005-01-281-2/+6
| |
* | niggly test suite fixesdgp2004-11-031-2/+2
| |
* | Fix pseudo-constraintdkf2004-10-311-2/+2
| |
* | added support for wide integers to round(); [Bug 908375], reported byMiguel Sofer2004-07-031-1/+16
| | | | | | | | Hemang Lavana.