From: Alex M. <al...@us...> - 2005-11-07 00:44:06
|
Update of /cvsroot/gmpy/gmpy/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23242/test Modified Files: gmpy_test_mpq.py Log Message: Fixed 823208 (str2mpq failed to initialize denominator when the argument string contained no slash), added unit test checking that. Index: gmpy_test_mpq.py =================================================================== RCS file: /cvsroot/gmpy/gmpy/test/gmpy_test_mpq.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** gmpy_test_mpq.py 6 Nov 2005 03:14:41 -0000 1.3 --- gmpy_test_mpq.py 7 Nov 2005 00:43:55 -0000 1.4 *************** *** 203,207 **** File "<stdin>", line 1, in ? TypeError: argument can not be converted to mpq ! >>> ''' --- 203,211 ---- File "<stdin>", line 1, in ? TypeError: argument can not be converted to mpq ! >>> x=_g.mpq('234/567') ! >>> del x ! >>> _g.mpq('7788') ! mpq(7788) ! >>> ''' |