1. Pypy
  2. Untitled project
  3. pypy

Commits

Brian Kearns  committed 1980907

test this too

  • Participants
  • Parent commits 3fca57d
  • Branches default

Comments (0)

Files changed (1)

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

View file
  • Ignore whitespace
         assert array([]).sum() == 0.0
         assert array([]).reshape(0, 2).sum() == 0.
         assert (array([]).reshape(0, 2).sum(0) == [0., 0.]).all()
+        assert (array([]).reshape(0, 2).prod(0) == [1., 1.]).all()
         raises(ValueError, 'array([]).max()')
         assert (a.sum(0) == [30, 35, 40]).all()
         assert (a.sum(axis=0) == [30, 35, 40]).all()