[pypy-commit] pypy numpy-multidim: more tests
fijal
noreply at buildbot.pypy.org
Thu Oct 27 20:23:28 CEST 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-multidim
Changeset: r48537:2944b13d49dd
Date: 2011-10-27 20:22 +0200
http://bitbucket.org/pypy/pypy/changeset/2944b13d49dd/
Log: more tests
diff --git a/pypy/module/micronumpy/test/test_numarray.py b/pypy/module/micronumpy/test/test_numarray.py
--- a/pypy/module/micronumpy/test/test_numarray.py
+++ b/pypy/module/micronumpy/test/test_numarray.py
@@ -699,6 +699,11 @@
a[0,::-1] = numpy.array([11, 12])
assert (a == [[12, 11], [5, 10]]).all()
+ def test_ufunc(self):
+ from numpy import array
+ a = array([[1, 2], [3, 4], [5, 6]])
+ assert ((a + a) == array([[1+1, 2+2], [3+3, 4+4], [5+5, 6+6]])).all()
+
class AppTestSupport(object):
def setup_class(cls):
import struct
More information about the pypy-commit
mailing list