[Numpy-svn] r5015 - trunk/numpy/core/tests
numpy-svn at scipy.org
numpy-svn at scipy.org
Thu Apr 10 22:55:57 EDT 2008
Author: charris
Date: 2008-04-10 21:55:55 -0500 (Thu, 10 Apr 2008)
New Revision: 5015
Modified:
trunk/numpy/core/tests/test_regression.py
Log:
Add test for precision of longdouble repr. Need to add tests for all printing
precisions.
Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py 2008-04-11 02:44:43 UTC (rev 5014)
+++ trunk/numpy/core/tests/test_regression.py 2008-04-11 02:55:55 UTC (rev 5015)
@@ -1000,5 +1000,8 @@
"('bottom', [('bleft', ('>f4', (8, 64)), (1,)), "
"('bright', '>f4', (8, 36))])]")
+ def check_longdouble_repr_precision(self, level=rlevel) :
+ assert '1.2339999999999999858' == repr(np.longdouble(1.234))
+
if __name__ == "__main__":
NumpyTest().run()
More information about the Numpy-svn
mailing list