[pypy-commit] pypy numpy-dtype-alt: tests for float numarray mod
alex_gaynor
noreply at buildbot.pypy.org
Mon Aug 29 18:43:29 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: numpy-dtype-alt
Changeset: r46895:3a16c753cff0
Date: 2011-08-29 12:43 -0400
http://bitbucket.org/pypy/pypy/changeset/3a16c753cff0/
Log: tests for float numarray mod
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
@@ -314,6 +314,12 @@
for i in range(5):
assert b[i] == 0
+ a = array(range(1, 6), float)
+ b = (a + 1) % a
+ assert b[0] == 0
+ for i in range(1, 5):
+ assert b[i] == 1
+
def test_mod_other(self):
from numpy import array
a = array(range(5))
More information about the pypy-commit
mailing list