[pypy-commit] pypy numpy NDimArray: add test for construct NDimArray
mattip
noreply at buildbot.pypy.org
Sun Oct 16 23:26:49 CEST 2011
Author: mattip
Branch: numpy NDimArray
Changeset: r48100:b90c8d28d864
Date: 2011-10-16 22:56 +0200
http://bitbucket.org/pypy/pypy/changeset/b90c8d28d864/
Log: add test for construct NDimArray
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
@@ -48,6 +48,12 @@
a = array(range(5))
assert a[3] == 3
+ def test_iterator_init(self):
+ from numpy import array
+ a = array((range(5),range(5))
+ assert a[3] == 3
+ assert a[8] == 3
+
def test_repr(self):
from numpy import array, zeros
a = array(range(5), float)
More information about the pypy-commit
mailing list