[pypy-svn] r44068 - pypy/branch/prolog-bytecode/pypy/lang/prolog/interpreter/test

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Jun 7 01:49:25 CEST 2007


Author: cfbolz
Date: Thu Jun  7 01:49:25 2007
New Revision: 44068

Modified:
   pypy/branch/prolog-bytecode/pypy/lang/prolog/interpreter/test/test_interpreter.py
Log:
make the test a bit more elaborate


Modified: pypy/branch/prolog-bytecode/pypy/lang/prolog/interpreter/test/test_interpreter.py
==============================================================================
--- pypy/branch/prolog-bytecode/pypy/lang/prolog/interpreter/test/test_interpreter.py	(original)
+++ pypy/branch/prolog-bytecode/pypy/lang/prolog/interpreter/test/test_interpreter.py	Thu Jun  7 01:49:25 2007
@@ -14,4 +14,12 @@
     where, _, c2, _ = res
     assert cont is c2
 
+    query, vars = get_query_and_vars("f(X).")
+    frame = r.make_frame(query)
+    cont = object()
+    res = frame.run(frame.code.opcode, 0, cont)
+    where, _, c2, _ = res
+    assert cont is c2
+    assert vars['X'].dereference(e.heap).name == 'a'
+
 


More information about the pypy-svn mailing list