Commits

Michael Blume committed cbe115c

test the no-op case for ndmin

  • Participants
  • Parent commits c22d05c
  • Branches ndmin

Comments (0)

Files changed (1)

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

     def test_ndmin(self):
         from _numpypy import array
 
+        arr = array([[[1]]], ndmin=1)
+        assert arr.shape == (1, 1, 1)
+
+    def test_noop_ndmin(self):
+        from _numpypy import array
+
         arr = array([1], ndmin=3)
         assert arr.shape == (1, 1, 1)