Jerry James
71e94d4dfc
Python 3.10 compatibility.
2020-11-13 09:26:34 -07:00
Vincent Klein
ce94b61c21
Fix issue #238 use the doctest tag ...
...
... SKIP_MPC_LESS_THAN_110 to skip doctest when mpc
version is < 1.1.0
2019-04-11 10:57:50 +02:00
Case Van Horsen
3a42663089
Fix reference leaks; reformat tests to prevent creation of bogus reference count increases.
2019-04-08 05:39:11 -07:00
Vincent Klein
19b0d2f32a
Fix root_of_unity warning and doctests errors.
...
Currently if gmpy2 is used with a mpc version older than
1.1.0 it generate a compilation warning and doctests
failures as gmpy2.root_of_unity attrib is not defined
- Fix gmpy2_mpc_misc.h to avoid generating warning
- Create a doctest flag and a doctest parser
to SKIP doctests if root_of_unity is not defined
2019-03-21 11:34:04 +01:00
Vincent Klein
6a5c50f1b1
Add many test to improve gmpy2 test coverage
...
Add tests for the followings files:
- gmpy2_square.c
- gmpy2_convert_gmp.c
- gmpy2_math.c
- gmpy2_convert_mpc.c
- gmpy2_convert_mpfr.c
- gmpy2_minus.c
- gmpy2_plus.c
- gmpy2_xmpz_misc.c (partial)
- gmpy2_mpfr_misc.c
- gmpy2_pow.c
Fix a GMPy_MPFR_copy_sign error message
2019-03-13 17:56:37 +01:00
Case Van Horsen
bc2e92f714
Support for differences between MPFR3 and MPFR4 version of root/rootn and nrandom/grandom.
2018-06-10 14:49:18 -07:00
Case Van Horsen
9307dd2273
Correct Python 2.x specific warning and test failures.
2017-07-28 16:33:05 -07:00
Case Van Horsen
a614b402f7
More test and code clean for divmod and add.
2015-05-24 22:37:05 -07:00
Case Van Horsen
c9618867d4
Add tests for mpz conversion and misc mpz functions.
2015-05-19 21:36:44 -07:00
Case Van Horsen
c3e6c73e3a
More tests, especially for gmpy2_const.
2015-05-11 21:37:13 -07:00
Case Van Horsen
d9c33848e0
Improve test coverage for to/from binary objects.
2015-05-07 21:54:03 -07:00
Case Van Horsen
403288719d
Add support for lcov; redo tests for gmpy2_abs.c and gmpy2_add.c.
2015-04-29 22:52:03 -07:00
casevh
a360b9f7fe
[trunk] Implement convert_exact context option (str -> mpfr goes via mpq). This should fix the rounding issue seen for subnormals in issue 94.
2014-12-31 05:22:31 +00:00
casevh
1203e512b4
[trunk] Add some test cases.
2014-08-14 04:26:29 +00:00
casevh
84bb7ddf0e
[trunk] Merge the "devel" branch into trunk.
2014-05-28 03:40:02 +00:00
casevh
9368af7e77
[trunk] Update tests. get_context() no longer accepts arguments. Added copy() method to contexts.
2013-03-24 07:26:00 +00:00
casevh
b5522c444a
[trunk] Update tests.
2013-03-22 04:23:41 +00:00
casevh
00541e30c0
[trunk] Updates to test suite.
2013-02-20 07:08:28 +00:00
casevh
17f2442da3
[trunk] Add support for __ceil__, __floor__, __trunc__, and __round__ to the mpz and mpq types. Some miscellaneous code cleanup. Added additional tests.
2012-12-25 03:50:06 +00:00
casevh
d14293d877
[trunk] Add some tests.
2012-12-14 04:06:37 +00:00
casevh
f39ffe1e16
[trunk] Fix issues with is_XXX() and complex numbers.
2012-12-03 02:42:05 +00:00
casevh
8cf04d64e0
[trunk] Fix bug in mpz.__format__() with # code. Add tests. Change version in setup.py to 2.0.0.
2012-11-24 04:08:19 +00:00
casevh
1b4741dd1f
[trunk] Update test suite.
2012-09-10 06:39:34 +00:00
casevh
8008b5985a
[trunk] Fix context manager.
2012-03-09 06:06:21 +00:00
casevh
f8b350eddf
[trunk] Audited code and docstrings in gmpy_mpz.c. Minor bug fixes, changes to error messages, docstrings, and tests.
2012-02-26 05:09:17 +00:00
casevh
cb6684810a
[trunk] Begin adding new tests.
2012-02-23 01:31:41 +00:00
casevh
8c86398090
[trunk] More updates to new test suite.
2011-11-06 23:48:30 +00:00
casevh
68b57db3a6
[trunk] Converted more tests to use the new test process. Some tests will fail on Python 2.x. Fixed crasher bug in remove()
2011-10-31 06:55:30 +00:00
casevh
84cf68ad7c
[trunk] Added new tests: test_hash.txt and test_dec.txt.
2011-10-30 06:31:48 +00:00
casevh
d4957e14cf
[trunk] Start writing tests in the new format.
2011-10-29 22:32:25 +00:00
casevh
cc37c75499
[trunk] Begin development of new test suite.
2011-10-21 06:53:37 +00:00