[Numpy-svn] r4761 - trunk/numpy/core/tests

numpy-svn@scip... numpy-svn@scip...
Tue Jan 29 03:32:55 CST 2008


Author: stefan
Date: 2008-01-29 03:32:43 -0600 (Tue, 29 Jan 2008)
New Revision: 4761

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Add regression test for fromstring.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2008-01-29 03:14:01 UTC (rev 4760)
+++ trunk/numpy/core/tests/test_regression.py	2008-01-29 09:32:43 UTC (rev 4761)
@@ -771,5 +771,9 @@
     def check_binary_repr_0_width(self, level=rlevel):
         assert_equal(np.binary_repr(0,width=3),'000')
 
+    def check_fromstring(self, level=rlevel):
+        assert_equal(np.fromstring("12:09:09", dtype=int, sep=":"),
+                     [12,9,9])
+
 if __name__ == "__main__":
     NumpyTest().run()



More information about the Numpy-svn mailing list