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

Reply via email to