From: Alex M. <al...@us...> - 2004-12-23 08:11:24
|
Update of /cvsroot/gmpy/gmpy/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20195/test Modified Files: gmpy_test.py gmpy_test_cvr.py gmpy_test_mpf.py gmpy_test_mpq.py gmpy_test_mpz.py gmpy_test_rnd.py Log Message: support 2.4 as well as 2.3 Index: gmpy_test.py =================================================================== RCS file: /cvsroot/gmpy/gmpy/test/gmpy_test.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** gmpy_test.py 8 Aug 2003 11:29:43 -0000 1.2 --- gmpy_test.py 23 Dec 2004 08:11:09 -0000 1.3 *************** *** 24,28 **** _g = gmpy ! print "Unit tests for gmpy 1,0 alpha" print " on Python",sys.version print "Testing gmpy %s (GMP %s), default caching (%s, %s, %s..%s)" % ( --- 24,28 ---- _g = gmpy ! print "Unit tests for gmpy 1.0 release candidate" print " on Python",sys.version print "Testing gmpy %s (GMP %s), default caching (%s, %s, %s..%s)" % ( Index: gmpy_test_cvr.py =================================================================== RCS file: /cvsroot/gmpy/gmpy/test/gmpy_test_cvr.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** gmpy_test_cvr.py 8 Aug 2003 11:29:43 -0000 1.2 --- gmpy_test_cvr.py 23 Dec 2004 08:11:14 -0000 1.3 *************** *** 3,7 **** # test-version 1.0 r''' ! >>> _g.gmp_version() in ('4.0.1', '3.1.1') True >>> _g.version() --- 3,7 ---- # test-version 1.0 r''' ! >>> _g.gmp_version() in ('4.1.4', '4.0.1', '3.1.1') True >>> _g.version() *************** *** 463,467 **** def _test(chat=None): if chat: ! print "Unit tests for gmpy 0.9 pre-alpha (extra cover)" print " running on Python",sys.version print --- 463,467 ---- def _test(chat=None): if chat: ! print "Unit tests for gmpy 1.0 release candidate (extra cover)" print " running on Python",sys.version print Index: gmpy_test_mpf.py =================================================================== RCS file: /cvsroot/gmpy/gmpy/test/gmpy_test_mpf.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** gmpy_test_mpf.py 30 Dec 2003 09:21:16 -0000 1.3 --- gmpy_test_mpf.py 23 Dec 2004 08:11:14 -0000 1.4 *************** *** 333,337 **** def _test(chat=None): if chat: ! print "Unit tests for gmpy 0.9 pre-alpha (mpf functionality)" print " running on Python",sys.version print --- 333,337 ---- def _test(chat=None): if chat: ! print "Unit tests for gmpy 1.0 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.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** gmpy_test_mpq.py 8 Aug 2003 08:57:05 -0000 1.1 --- gmpy_test_mpq.py 23 Dec 2004 08:11:14 -0000 1.2 *************** *** 293,297 **** def _test(chat=None): if chat: ! print "Unit tests for gmpy 0.9 pre-alpha (mpq functionality)" print " running on Python",sys.version print --- 293,297 ---- def _test(chat=None): if chat: ! print "Unit tests for gmpy 1.0 release candidate (mpq functionality)" print " running on Python",sys.version print Index: gmpy_test_mpz.py =================================================================== RCS file: /cvsroot/gmpy/gmpy/test/gmpy_test_mpz.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** gmpy_test_mpz.py 8 Aug 2003 09:48:57 -0000 1.2 --- gmpy_test_mpz.py 23 Dec 2004 08:11:14 -0000 1.3 *************** *** 532,536 **** def _test(chat=None): if chat: ! print "Unit tests for gmpy 0.9 pre-alpha (mpz functionality)" print " running on Python",sys.version print --- 532,536 ---- def _test(chat=None): if chat: ! print "Unit tests for gmpy 1.0 release candidate (mpz functionality)" print " running on Python",sys.version print Index: gmpy_test_rnd.py =================================================================== RCS file: /cvsroot/gmpy/gmpy/test/gmpy_test_rnd.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** gmpy_test_rnd.py 8 Aug 2003 08:57:05 -0000 1.1 --- gmpy_test_rnd.py 23 Dec 2004 08:11:14 -0000 1.2 *************** *** 16,29 **** >>> r('error',1,2,3) Traceback (most recent call last): ! File "<string>", line 1, in ? TypeError: function takes exactly 2 arguments (4 given) >>> r('save') Traceback (most recent call last): ! File "<string>", line 1, in ? RuntimeError: can't save before init >>> r('init',20) >>> r('unkn',99) Traceback (most recent call last): ! File "<string>", line 1, in ? ValueError: unknown option 'unkn' >>> r('seed',1234) --- 16,29 ---- >>> r('error',1,2,3) Traceback (most recent call last): ! ... TypeError: function takes exactly 2 arguments (4 given) >>> r('save') Traceback (most recent call last): ! ... RuntimeError: can't save before init >>> r('init',20) >>> r('unkn',99) Traceback (most recent call last): ! ... ValueError: unknown option 'unkn' >>> r('seed',1234) *************** *** 108,118 **** plurotenk ekrnutplo ! >>> r('shuf','astring') ! Traceback (most recent call last): ! File "<string>", line 1, in ? ! TypeError: object doesn't support item assignment >>> r('shuf',23) Traceback (most recent call last): ! File "<string>", line 1, in ? TypeError: 'shuf' needs mutable sequence >>> --- 108,119 ---- plurotenk ekrnutplo ! >>> try: r('shuf','astring') ! ... except TypeError, e: ! ... print str(e).replace("doesn't", "does not") ! ... ! object does not support item assignment >>> r('shuf',23) Traceback (most recent call last): ! ... TypeError: 'shuf' needs mutable sequence >>> *************** *** 120,124 **** def _test(chat=None): if chat: ! print "Unit tests for gmpy 0.9 pre-alpha (rand functionality)" print " running on Python",sys.version print --- 121,125 ---- def _test(chat=None): if chat: ! print "Unit tests for gmpy 1.0 release candidate (rand functionality)" print " running on Python",sys.version print |