Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r311:003fcd027fc5
Date: 2013-06-27 17:57 +0200
http://bitbucket.org/pypy/stmgc/changeset/003fcd027fc5/

Log:    Add a longer version

diff --git a/duhton/test/test_gc.py b/duhton/test/test_gc.py
--- a/duhton/test/test_gc.py
+++ b/duhton/test/test_gc.py
@@ -1,22 +1,25 @@
 from support import run
 
 
-def test_long1():
+def test_long1(limit=12):
     got = run("""
         (defun g (n)
-         (if (>= n 12)
+         (if (>= n %d)
              (print n)
            (g (+ n 1))
            (g (+ n 2))))
         (g 0)
-    """)
+    """ % limit)
     pieces = got.splitlines()
     expected = []
     def g(n):
-        if n >= 12:
+        if n >= limit:
             expected.append(str(n))
         else:
             g(n + 1)
             g(n + 2)
     g(0)
     assert pieces == expected
+
+def test_verylong1():
+    test_long1(limit=16)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to