Commits

Michael Blume committed 1922a4f

add failing test for rfloordiv

  • Participants
  • Parent commits ca62022

Comments (0)

Files changed (1)

File pypy/module/micronumpy/test/test_numarray.py

         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))