1. Pypy
  2. Untitled project
  3. pypy

Commits

Michael Blume  committed 67cb9cf

add failing test of ndmin parameter of numpy.array

  • Participants
  • Parent commits 65f628f
  • Branches ndmin

Comments (0)

Files changed (1)

File pypy/module/micronumpy/test/test_numarray.py

View file
         assert a.shape == (3,)
         assert a.dtype is dtype(int)
 
+    def test_ndmin(self):
+        from _numpypy import array
+
+        arr = array([1], ndmin=3)
+        assert arr.shape == (1, 1, 1)
+
     def test_type(self):
         from _numpypy import array
         ar = array(range(5))