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

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Oct 6 20:04:14 CDT 2006


Author: stefan
Date: 2006-10-06 20:04:00 -0500 (Fri, 06 Oct 2006)
New Revision: 3270

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


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2006-10-07 00:09:02 UTC (rev 3269)
+++ trunk/numpy/core/tests/test_regression.py	2006-10-07 01:04:00 UTC (rev 3270)
@@ -476,5 +476,11 @@
         x.flat[2] = (1,2,3)
         assert_equal(x.flat[2],(1,2,3))
         
+    def check_ndmin_float64(self, level=rlevel):
+        """Ticket #324"""
+        x = N.array([1,2,3],dtype=N.float64)        
+        assert_equal(N.array(x,dtype=N.float32,ndmin=2).ndim,2)        
+        assert_equal(N.array(x,dtype=N.float64,ndmin=2).ndim,2)
+        
 if __name__ == "__main__":
     NumpyTest().run()



More information about the Numpy-svn mailing list