[Numpy-svn] r4607 - trunk/numpy/core/tests
numpy-svn at scipy.org
numpy-svn at scipy.org
Mon Dec 17 03:26:11 EST 2007
Author: stefan
Date: 2007-12-17 02:25:57 -0600 (Mon, 17 Dec 2007)
New Revision: 4607
Modified:
trunk/numpy/core/tests/test_regression.py
Log:
Add regression test for binary_repr.
Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py 2007-12-16 11:11:45 UTC (rev 4606)
+++ trunk/numpy/core/tests/test_regression.py 2007-12-17 08:25:57 UTC (rev 4607)
@@ -768,6 +768,8 @@
index = N.array(0,dtype=N.int32)
x[index]
+ def check_binary_repr_0_width(self, level=rlevel):
+ assert_equal(N.binary_repr(0,width=3),'000')
if __name__ == "__main__":
NumpyTest().run()
More information about the Numpy-svn
mailing list