From: Alex M. <al...@us...> - 2005-11-07 21:55:47
|
Update of /cvsroot/gmpy/gmpy/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20916/test Modified Files: gmpy_test_mpz.py Log Message: Fixed gmpy.divm for non-coprime divisor and modulo, added tests for that. Index: gmpy_test_mpz.py =================================================================== RCS file: /cvsroot/gmpy/gmpy/test/gmpy_test_mpz.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** gmpy_test_mpz.py 7 Nov 2005 21:04:31 -0000 1.8 --- gmpy_test_mpz.py 7 Nov 2005 21:55:39 -0000 1.9 *************** *** 415,418 **** --- 415,420 ---- _g.divm(a,b,100) ZeroDivisionError: not invertible + >>> _g.divm(6,12,14) + mpz(4) >>> _g.divm(0,1,2) mpz(0) |