[pypy-svn] r71080 - pypy/branch/rsre/pypy/rlib/rsre/test
arigo at codespeak.net
arigo at codespeak.net
Wed Feb 3 13:01:02 CET 2010
Author: arigo
Date: Wed Feb 3 13:01:01 2010
New Revision: 71080
Added:
pypy/branch/rsre/pypy/rlib/rsre/test/test_zinterp.py (contents, props changed)
Log:
Add a minimal test that verifies that rsre is RPython.
Added: pypy/branch/rsre/pypy/rlib/rsre/test/test_zinterp.py
==============================================================================
--- (empty file)
+++ pypy/branch/rsre/pypy/rlib/rsre/test/test_zinterp.py Wed Feb 3 13:01:01 2010
@@ -0,0 +1,12 @@
+# minimal test: just checks that (parts of) rsre can be translated
+
+from pypy.rpython.test.test_llinterp import gengraph
+from pypy.rlib.rsre.test import targetrsre
+
+def main(n):
+ state = targetrsre.rsre.SimpleStringState(str(n))
+ return state.search(targetrsre.r_code1)
+
+
+def test_gengraph():
+ t, typer, graph = gengraph(main, [int])
More information about the Pypy-commit
mailing list