From: Alex M. <al...@us...> - 2005-11-11 21:52:34
|
Update of /cvsroot/gmpy/gmpy/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21462/test Modified Files: gmpy_test_mpf.py gmpy_test_mpq.py gmpy_test_mpz.py gmpy_test_rnd.py gmpy_truediv.py timing1.py Log Message: Minor cleanups in preparation for 1.01 release. Index: gmpy_test_mpf.py =================================================================== RCS file: /cvsroot/gmpy/gmpy/test/gmpy_test_mpf.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** gmpy_test_mpf.py 7 Nov 2005 21:04:31 -0000 1.5 --- gmpy_test_mpf.py 11 Nov 2005 21:52:23 -0000 1.6 *************** *** 1,3 **** ! # partial unit test for gmpy 1.0 mpf functionality # relies on Tim Peters' "doctest.py" test-driver # test-version 1.0 --- 1,3 ---- ! # partial unit test for gmpy 1.01 mpf functionality # relies on Tim Peters' "doctest.py" test-driver # test-version 1.0 *************** *** 352,356 **** def _test(chat=None): if chat: ! print "Unit tests for gmpy 1.0 release candidate (mpf functionality)" print " running on Python",sys.version print --- 352,356 ---- def _test(chat=None): if chat: ! print "Unit tests for gmpy 1.01 release candidate (mpf functionality)" print " running on Python",sys.version print Index: gmpy_test_mpq.py =================================================================== RCS file: /cvsroot/gmpy/gmpy/test/gmpy_test_mpq.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** gmpy_test_mpq.py 7 Nov 2005 21:04:31 -0000 1.5 --- gmpy_test_mpq.py 11 Nov 2005 21:52:23 -0000 1.6 *************** *** 1,3 **** ! # partial unit test for gmpy 1.0 mpq functionality # relies on Tim Peters' "doctest.py" test-driver # test-version 1.0 --- 1,3 ---- ! # partial unit test for gmpy 1.01 mpq functionality # relies on Tim Peters' "doctest.py" test-driver # test-version 1.0 Index: gmpy_test_mpz.py =================================================================== RCS file: /cvsroot/gmpy/gmpy/test/gmpy_test_mpz.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** gmpy_test_mpz.py 7 Nov 2005 21:55:39 -0000 1.9 --- gmpy_test_mpz.py 11 Nov 2005 21:52:23 -0000 1.10 *************** *** 1,3 **** ! # partial unit test for gmpy 1.0 mpz functionality # relies on Tim Peters' "doctest.py" test-driver # test-version 1.0 --- 1,3 ---- ! # partial unit test for gmpy 1.01 mpz functionality # relies on Tim Peters' "doctest.py" test-driver # test-version 1.0 Index: gmpy_test_rnd.py =================================================================== RCS file: /cvsroot/gmpy/gmpy/test/gmpy_test_rnd.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** gmpy_test_rnd.py 7 Nov 2005 18:08:17 -0000 1.4 --- gmpy_test_rnd.py 11 Nov 2005 21:52:23 -0000 1.5 *************** *** 1,3 **** ! # partial unit test for gmpy 1.0 rand functionality # relies on Tim Peters' "doctest.py" test-driver # test-version 1.0 --- 1,3 ---- ! # partial unit test for gmpy 1.01 rand functionality # relies on Tim Peters' "doctest.py" test-driver # test-version 1.0 Index: gmpy_truediv.py =================================================================== RCS file: /cvsroot/gmpy/gmpy/test/gmpy_truediv.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** gmpy_truediv.py 7 Nov 2005 21:04:31 -0000 1.1 --- gmpy_truediv.py 11 Nov 2005 21:52:23 -0000 1.2 *************** *** 1,2 **** --- 1,5 ---- + ''' make a "true division" function available for testing ''' + from __future__ import division + def truediv(a, b): return a/b Index: timing1.py =================================================================== RCS file: /cvsroot/gmpy/gmpy/test/timing1.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** timing1.py 8 Aug 2003 08:57:05 -0000 1.2 --- timing1.py 11 Nov 2005 21:52:23 -0000 1.3 *************** *** 1,4 **** --- 1,11 ---- import gmpy, time + + try: sum + except NameError: + def sum(x, z): + for item in x: z += item + return z + def timedsum(n, zero): start=time.clock() |