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

numpy-svn at scipy.org numpy-svn at scipy.org
Tue Aug 15 04:37:48 CDT 2006


Author: stefan
Date: 2006-08-15 04:37:43 -0500 (Tue, 15 Aug 2006)
New Revision: 3026

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Test for lexsort.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2006-08-15 06:25:51 UTC (rev 3025)
+++ trunk/numpy/core/tests/test_regression.py	2006-08-15 09:37:43 UTC (rev 3026)
@@ -347,6 +347,11 @@
         assert_equal(N.array([],dtype=object).shape, ())
         assert_equal(N.array([[],[],[]],dtype=object).shape, (3,))
         assert_equal(N.array([[3,4],[5,6],None],dtype=object).shape, (3,))
+        
+    def check_lexsort(self,level=rlevel):
+        """Lexsort memory error"""
+        v = N.array([1,2,3,4,5,6,7,8,9,10])
+        assert_equal(N.lexsort(v),0)
 
 if __name__ == "__main__":
     NumpyTest().run()



More information about the Numpy-svn mailing list