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

numpy-svn at scipy.org numpy-svn at scipy.org
Mon Nov 20 01:26:42 CST 2006


Author: stefan
Date: 2006-11-20 01:26:29 -0600 (Mon, 20 Nov 2006)
New Revision: 3455

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Add test for chararray.startswith.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2006-11-20 07:24:53 UTC (rev 3454)
+++ trunk/numpy/core/tests/test_regression.py	2006-11-20 07:26:29 UTC (rev 3455)
@@ -590,5 +590,9 @@
         """Changeset #3443"""
         assert_valid_refcount(N.vdot)
 
+    def check_startswith(self, level=rlevel):
+        ca = N.char.array(['Hi','There'])
+        assert_equal(ca.startswith('H'),[True,False])
+
 if __name__ == "__main__":
     NumpyTest().run()



More information about the Numpy-svn mailing list