[pypy-svn] pypy jit-virtual_state: test

hakanardo commits-noreply at bitbucket.org
Sun Feb 6 17:18:13 CET 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-virtual_state
Changeset: r41660:6f98022ad31c
Date: 2011-02-06 17:17 +0100
http://bitbucket.org/pypy/pypy/changeset/6f98022ad31c/

Log:	test

diff --git a/pypy/jit/metainterp/test/test_virtual.py b/pypy/jit/metainterp/test/test_virtual.py
--- a/pypy/jit/metainterp/test/test_virtual.py
+++ b/pypy/jit/metainterp/test/test_virtual.py
@@ -561,7 +561,11 @@
                     node2 = next
                 n -= 1
             return node1.value + node2.value
-        assert self.meta_interp(f, [300, 3]) == f(300, 3)
+        assert self.meta_interp(f, [40, 3]) == f(40, 3)
+        
+        def g(n1, n2, s):
+            return f(n1, s) + f(n2, s)
+        # FIXME: Try the case where we need to call the second version from the interpreter
         
 
 class VirtualMiscTests:


More information about the Pypy-commit mailing list