[pypy-commit] pypy numppy-flatitter: finish the test

fijal noreply at buildbot.pypy.org
Fri Jan 27 12:02:59 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numppy-flatitter
Changeset: r51847:e0d5bd060533
Date: 2012-01-27 12:32 +0200
http://bitbucket.org/pypy/pypy/changeset/e0d5bd060533/

Log:	finish the test

diff --git a/pypy/module/micronumpy/test/test_zjit.py b/pypy/module/micronumpy/test/test_zjit.py
--- a/pypy/module/micronumpy/test/test_zjit.py
+++ b/pypy/module/micronumpy/test/test_zjit.py
@@ -373,12 +373,17 @@
         return '''
         a = |30|
         b = flat(a)
-        b -> 3
+        c = b + a
+        c -> 3
         '''
 
     def test_flat_iter(self):
         result = self.run("flat_iter")
-        assert result == 3
+        assert result == 6
+        self.check_simple_loop({'getinteriorfield_raw': 2, 'float_add': 1,
+                                'setinteriorfield_raw': 1, 'int_add': 3,
+                                'int_ge': 1, 'guard_false': 1,
+                                'arraylen_gc': 1})
 
     def define_flat_getitem():
         return '''


More information about the pypy-commit mailing list