summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_math.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-31/+30
|
* Issue #18739: Fix inconsistent results from math.log(n) and math.log(long(n))Mark Dickinson2013-10-131-0/+6
|
* #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
|
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-62/+62
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
* these tests are the result of cpython's incorrect implementationBenjamin Peterson2010-07-071-5/+0
|
* be more generous to implementations that have implemented correctlyBenjamin Peterson2010-07-051-2/+2
|
* Issue #8986: erfc was raising OverflowError on Linux for arguments inMark Dickinson2010-06-131-0/+9
| | | | | the (approximate) range (-27.3, 30.0), as a result of an escaped errno value.
* Fix unused variable in test_factorial.Mark Dickinson2010-05-121-1/+1
|
* testCopysign was defined twice in test_math; combine the definitionsMark Dickinson2010-02-061-25/+24
|
* Silence -3 warnings. Thanks Florent Xicluna.Mark Dickinson2009-12-201-2/+4
|
* Issue #3366: Add expm1 function to math module. Thanks Eric Smith forMark Dickinson2009-12-161-7/+6
| | | | testing on Windows.
* Issue #3366: Add lgamma function to math module.Mark Dickinson2009-12-111-5/+45
|
* test_math ulp computation was wrong on big-endian systemsMark Dickinson2009-10-171-1/+1
|
* Fix buggy accuracy testMark Dickinson2009-09-301-1/+1
|
* Issue #3366: Add gamma function to math module.Mark Dickinson2009-09-281-0/+88
| | | | (lgamma, erf and erfc to follow).
* Use skipUnless to skip math module tests on non-IEEE 754 platforms.Mark Dickinson2009-09-181-31/+34
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-74/+74
|
* Remove unnecessary double negativeMark Dickinson2009-04-241-1/+1
|
* Issue #5593: Use more robust test for double-rounding in test_fsum.Mark Dickinson2009-04-241-8/+9
| | | | | While we're at it, use new unittest.skipUnless decorator to implement skipping for that test.
* Rename testSum to testFsum and move it to proper place in test_math.pyMark Dickinson2008-07-311-97/+96
|
* Rename math.sum to math.fsumMark Dickinson2008-07-301-7/+7
|
* More modifications to tests for math.sum: replace the PythonMark Dickinson2008-07-291-39/+39
| | | | | version of msum by a version using a different algorithm, and use the new float.fromhex method to specify test results exactly.
* Remove math.sum tests related to overflow, special values, and behaviourMark Dickinson2008-07-271-65/+10
| | | | | near the extremes of the floating-point range. (The behaviour of math.sum should be regarded as undefined in these cases.)
* Issue #2138: Add math.factorial().Raymond Hettinger2008-06-091-0/+15
|
* Fix typo in testSumMark Dickinson2008-05-301-1/+1
|
* Skip math.sum tests on non IEEE 754 platforms, and on IEEE 754 platformsMark Dickinson2008-05-231-0/+16
| | | | that exhibit the problem described in issue #2937.
* Better error reporting in test_math.pyMark Dickinson2008-05-231-0/+4
|
* Add tests for math.sum (Issue #2819)Mark Dickinson2008-05-231-0/+136
|
* Issue #2487. math.ldexp(x, n) raised OverflowError when n was large andMark Dickinson2008-05-091-0/+18
| | | | negative; fix to return an (appropriately signed) zero instead.
* Add test for tanh(-0.) == -0. on IEEE 754 systemsMark Dickinson2008-04-201-0/+58
|
* Yet more explicit special case handling to makeMark Dickinson2008-04-201-0/+12
| | | | | | math.pow behave on alpha Tru64. All IEEE 754 special values are now handled directly; only the finite**finite case is handled by libm.
* Report additional diagnostic information inMark Dickinson2008-04-201-1/+6
| | | | | test_math, to help track down debian-alpha buildbot failure.
* Additional tests for math.pow, and extra special-caseMark Dickinson2008-04-191-10/+124
| | | | | handling code in math.pow, in the hope of making all tests pass on the alpha Tru64 buildbot.
* I finally got the time to update and merge Mark's and my trunk-math branch. ↵Christian Heimes2008-04-181-3/+238
| | | | | | The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math. The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :)
* Move __builtins__.trunc() to math.trunc() perJeffrey Yasskin2008-02-011-0/+31
| | | | | http://mail.python.org/pipermail/python-dev/2008-January/076626.html and issue 1965.
* Continue rolling back pep-3141 changes that changed behavior from 2.5. ThisJeffrey Yasskin2008-01-051-4/+4
| | | | | | | | | | | | round included: * Revert round to its 2.6 behavior (half away from 0). * Because round, floor, and ceil always return float again, it's no longer necessary to have them delegate to __xxx___, so I've ripped that out of their implementations and the Real ABC. This also helps in implementing types that work in both 2.6 and 3.0: you return int from the __xxx__ methods, and let it get enabled by the version upgrade. * Make pow(-1, .5) raise a ValueError again.
* Make math.{floor,ceil}({int,long}) return float again for backwardsJeffrey Yasskin2008-01-041-0/+8
| | | | compatibility after r59671 made them return integral types.
* Added copysign(x, y) function to the math moduleChristian Heimes2008-01-031-0/+7
|
* Added math.isinf() and math.isnan()Christian Heimes2008-01-031-0/+16
|
* Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (justJeffrey Yasskin2008-01-031-0/+26
| | | | | | | the complex_pow part), r56649, r56652, r56715, r57296, r57302, r57359, r57361, r57372, r57738, r57739, r58017, r58039, r58040, and r59390, and new documentation. The only significant difference is that round(x) returns a float to preserve backward-compatibility. See http://bugs.python.org/issue1689.
* Make test_math error messages more meaningful for small discrepancies in resultsNick Coghlan2007-07-271-1/+5
|
* Add explicit test for a misbehaving math.floorNick Coghlan2007-07-261-0/+4
|
* Whitespace normalization.Tim Peters2006-11-031-1/+1
|
* Add tests for basic argument errors.Walter Dörwald2006-10-291-0/+27
|
* Convert test_math to unittest.Georg Brandl2006-10-281-201/+207
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-4/+4
| | | | From SF patch #852334.
* Expand log() tests to include long integers.Raymond Hettinger2002-12-181-0/+2
|
* Apply SF patch 652930: Add optional base argument to math.log(x[, base]).Raymond Hettinger2002-12-141-0/+1
|
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-301-1/+1
| | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)