summaryrefslogtreecommitdiffstats
path: root/tests/expr.test
Commit message (Collapse)AuthorAgeFilesLines
* Let all test-cases load the "tcltest" package the same way. Depend on ↵jan.nijtmans2020-09-041-2/+2
| | | | tcltest 2.5, since we never test with earlier tcltest versions
* Merge Tcl 8.5 changes to deal with integer overflow in the exponent, and ↵Kevin B Kenny2019-12-271-0/+66
|\ | | | | | | floating point overflow in the significand, of floating point input conversion (Bug [1de6b0629e]
| * Add test cases that used to cause floating point overflow in computing the ↵Kevin B Kenny2019-12-261-0/+9
| | | | | | | | correction term in floating point input conversion. Fix exponent overflow in floating point input conversion, and floating-point overflow in the significand in input conversion.
| * Fix parsing bug when (numSigDigs == 0).dgp2019-12-231-1/+1
| |
| * Tests for another parsing bug.dgp2019-12-221-0/+7
| |
| * Tests demonstrating the number parsing overflow bugs.dgp2019-12-211-0/+50
| |
* | Document maximum value for right argument of '**' operator. jan.nijtmans2019-03-271-21/+21
| | | | | | | | | | Adapt test-cases to test for exactly one more than this maximum value. Make sure that the maximum is the same for DIGIT_BIT > 28. Change macro's for mp_iseven()/mp_isodd() so they don't depend on value of DIGIT_BIT any more.
* | Add a test for no generation of a string representation when comparing with thepooryorick2018-06-231-0/+9
| | | | | | empty string.
* | More tests for bignum modules regressions.dgp2018-02-141-0/+6
| |
* | New test expr-32.7 for bignum modulus range.dgp2018-02-131-0/+3
| |
* | Fix [d0f7ba56f0e8f93b7efb5b09ebc30a824bdd577a|d0f7ba56f0]: INST_EQ ↵jan.nijtmans2017-02-011-0/+9
|\ \ | |/ | | | | first-argument NaN shortcut is too aggressive
| * Fix [d0f7ba56f0e8f93b7efb5b09ebc30a824bdd577a|d0f7ba56f0]: INST_EQ ↵jan.nijtmans2017-02-011-0/+9
| | | | | | | | first-argument NaN shortcut is too aggressive
| * Make sure that an input lying precisely 1/2 ULP between two floating point ↵dgp2015-06-241-0/+8
| | | | | | | | values is rounded to even.
* | Make sure that an input lying precisely 1/2 ULP between two floating point ↵Kevin B Kenny2015-06-201-0/+4
| | | | | | | | values is rounded to even.
* | 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 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.
| | * Fix [Bug 2954959] expr abs(-0.0) is -0.0nijtmans2010-02-221-2/+19
| | | | | | | | | | | | Added some test cases, adapted and backported from 8.5
| | * * tests/expr.test: Nan self-inquality test silenced. [Bug 761471]dgp2006-03-231-2/+2
| | |
| | * * tests/expr.test: Portable tests expr-46.13-18 [Bug 1341368]dgp2005-11-081-25/+13
| | |
| | * * tests/expr.test: Fix problems in new round()mdejong2005-10-291-25/+29
| | | | | | | | | | | | | | | tests that lead to correct result only on 32 bit long systems. [Bug 1341368]
| | * * generic/tclExecute.c (ExprRoundFunc):mdejong2005-10-281-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix typo where number before rounding is compared with smallest integer instead of number after rounding. This fix does not change the results of any tests. * tests/expr.test: Add round() tests for cases near the min and max int values. * tests/util.test: Remove pointless warning code about testobj command.
| | * renumber expr-39.* to expr-46.*Kevin B Kenny2005-08-291-13/+13
| | |
| | * fix test case numberingKevin B Kenny2005-08-291-2/+2
| | |
| | * Bug 1275043Kevin B Kenny2005-08-291-1/+72
| | |
| | * fix abs(MIN_INT) [Bug 1241572]Kevin B Kenny2005-08-051-1/+7
| | |
| | * Final fix for NaN != NaN bug. Thanks to Miguel Sofer for his improved patch.dkf2004-11-021-1/+6
| | | | | | | | | | | | [Bug 761471]
| | * Some tests were non-portable, alas.dkf2004-09-191-2/+2
| | |
| | * Make sure large shifts shift for real. [Bug 868467]dkf2004-09-181-1/+12
| | |
| | * More elimination of dup test numbers [Bugs 710365, 710369]dkf2003-03-271-3/+3
| | |
| * | Fix [Bug 2954959] expr abs(0.0) is -0.0nijtmans2010-02-211-1/+19
| | | | | | | | | | | | and added test cases for it.
| * | * tests/expr.test: Added many tests demonstrating the brokendgp2009-06-011-1/+326
| | | | | | | | | | | | cases of [Bug 2798543].
| * | Fix [Bug 2006879]dkf2009-01-061-2/+5
| | |
| * | * libtommath/bn_mp_sqrt.c (bn_mp_sqrt): Handle the case whereKevin B Kenny2008-10-051-1/+22
| | | | | | | | | | | | | | | | | | | | | * tests/expr.test (expr-47.13): a number's square root is between n<<DIGIT_BIT and n<<DIGIT_BIT+1. [Bug 2143288] Thanks to Malcolm Boffey (malcolm.boffey@virgin.net) for the patch.
* | | Coverage test for portion of ExprSqrtFunc()dgp2010-10-261-1/+5
| | |
* | | Follow-up to Fix [Bug 2954959] expr abs(0.0) is -0.0nijtmans2010-02-211-1/+13
| | | | | | | | | | | | | | | | | | Some more tests, showing that the LONG implementation was not quite correct too, and a fix for that. Some more internal "const" additions
* | | Fix [Bug 2954959] expr abs(0.0) is -0.0nijtmans2010-02-211-1/+7
| | | | | | | | | | | | and added test cases for it.
* | | TIP #353 IMPLEMENTATIONdgp2009-08-121-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/NRE.3: New public routine Tcl_NRExprObj() permits * generic/tcl.decls: extension commands to evaluate Tcl expressions * generic/tclBasic.c: in NR-enabled command procedures. * generic/tclCmdAH.c: * generic/tclExecute.c: * generic/tclInt.h: * generic/tclObj.c: * tests/expr.test: * generic/tclDecls.h: make genstubs * generic/tclStubInit.c:
* | | * tests/expr.test: Added many tests demonstrating the brokendgp2009-06-011-1/+326
| | | | | | | | | | | | cases of [Bug 2798543].
* | | Fix [Bug 2006879]dkf2009-01-061-2/+2
| | |
* | | * libtommath/bn_mp_sqrt.c (bn_mp_sqrt): Handle the case whereKevin B Kenny2008-10-051-1/+22
|/ / | | | | | | | | | | | | * tests/expr.test (expr-47.13): a number's square root is between n<<DIGIT_BIT and n<<DIGIT_BIT+1. [Bug 2143288] Thanks to Malcolm Boffey (malcolm.boffey@virgin.net) for the patch.
* | * generic/tclBasic.c (ExprAbsFunc): Revised so that the abs()dgp2008-03-101-1/+19
| | | | | | | | | | | | * tests/expr.test: function and the [::tcl::mathfunc::abs] command do not return the value of -0, or equivalent values with more alarming string reps like -1e-350. [Bug 1893815].
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tclIOCmd.c: Revise [open] so that it interprets leadingdgp2007-10-151-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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:
* | * generic/tclExecute.c (TclExecuteByteCode): Added code to handleKevin B Kenny2007-08-251-2/+122
| | | | | | | | | | | | | | * tests/expr.test (expr-23.48-53) integer exponentiation that results in 32- and 64-bit integer results, avoiding calls to wide integer exponentiation routines in this common case. [Bug 1767293]
* | * generic/tclExecute.c: Corrected improper use of bignum argumentsdgp2007-08-081-1/+5
| | | | | | | | * tests/expr.test: to *SHIFT operations. [Bug 1770224].
* | Improved error reporting in test expr-47.12Kevin B Kenny2006-12-061-8/+18
| |
* | TIP#299 IMPLEMENTATIONKevin B Kenny2006-12-011-1/+92
| |
* | TIP#274 IMPLEMENTATIONdgp2006-11-051-1/+4
| | | | | | | | | | * generic/tclParseExpr.c: Exponentiation operator is now * tests/expr.test: right associative. [Patch 1556802]