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

numpy-svn at scipy.org numpy-svn at scipy.org
Sat Oct 14 04:50:53 CDT 2006


Author: stefan
Date: 2006-10-14 04:50:35 -0500 (Sat, 14 Oct 2006)
New Revision: 3336

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Add test for ticket #339.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2006-10-14 00:09:29 UTC (rev 3335)
+++ trunk/numpy/core/tests/test_regression.py	2006-10-14 09:50:35 UTC (rev 3336)
@@ -510,6 +510,11 @@
         """Ticket #335"""
         N.dtype([('col1', '()i4')])
         
+    def check_mgrid_single_element(self, level=rlevel):
+        """Ticket #339"""
+        assert_array_equal(N.mgrid[0:0:1j],[0])
+        assert_array_equal(N.mgrid[0:0],[])
+        
     def check_numeric_carray_compare(self, level=rlevel):
         """Ticket #341"""
         assert_equal(N.array([ 'X' ], 'c'),'X')        



More information about the Numpy-svn mailing list