[pypy-commit] pypy default: a passing test

fijal noreply at buildbot.pypy.org
Sat Oct 27 21:33:46 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r58515:26b36d793c7e
Date: 2012-10-27 21:32 +0200
http://bitbucket.org/pypy/pypy/changeset/26b36d793c7e/

Log:	a passing test

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
@@ -344,6 +344,13 @@
         assert a[-1] == 8
         raises(IndexError, "a[-6]")
 
+    def test_getitem_float(self):
+        from _numpypy import array
+        a = array([1, 2, 3, 4])
+        assert a[1.2] == 2
+        assert a[1.6] == 2
+        assert a[-1.2] == 4
+
     def test_getitem_tuple(self):
         from _numpypy import array
         a = array(range(5))


More information about the pypy-commit mailing list