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

numpy-svn@scip... numpy-svn@scip...
Fri Feb 1 05:18:01 CST 2008


Author: stefan
Date: 2008-02-01 05:17:39 -0600 (Fri, 01 Feb 2008)
New Revision: 4766

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Add regression test for searchsorted on variable-length arrays.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2008-01-31 19:19:26 UTC (rev 4765)
+++ trunk/numpy/core/tests/test_regression.py	2008-02-01 11:17:39 UTC (rev 4766)
@@ -775,5 +775,10 @@
         assert_equal(np.fromstring("12:09:09", dtype=int, sep=":"),
                      [12,9,9])
 
+    def check_searchsorted_variable_length(self, level=rlevel):
+        x = np.array(['a','aa','b'])
+        y = np.array(['d','e'])
+        assert_equal(x.searchsorted(y), [3,3])
+
 if __name__ == "__main__":
     NumpyTest().run()



More information about the Numpy-svn mailing list