Author: Alex Gaynor <[email protected]>
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))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit