[pypy-commit] pypy default: add failing test for rfloordiv

MichaelBlume noreply at buildbot.pypy.org
Mon Mar 12 22:49:27 CET 2012


Author: Mike Blume <mike at loggly.com>
Branch: 
Changeset: r53357:1922a4f3a1ec
Date: 2012-03-12 14:18 -0700
http://bitbucket.org/pypy/pypy/changeset/1922a4f3a1ec/

Log:	add failing test for rfloordiv

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
@@ -665,6 +665,13 @@
         for i in range(5):
             assert c[i] == i // 2
 
+    def test_rfloordiv(self):
+        from _numpypy import array
+        a = array(range(1, 6))
+        b = 3 // a
+        for i in range(5):
+            assert b[i] == 3 // a[i]
+
     def test_floordiv_constant(self):
         from _numpypy import array
         a = array(range(5))


More information about the pypy-commit mailing list