[pypy-svn] r55568 - pypy/branch/js-refactoring/pypy/lang/js/test

fijal at codespeak.net fijal at codespeak.net
Wed Jun 4 19:22:40 CEST 2008


Author: fijal
Date: Wed Jun  4 19:22:37 2008
New Revision: 55568

Modified:
   pypy/branch/js-refactoring/pypy/lang/js/test/test_interp.py
Log:
Fix tests


Modified: pypy/branch/js-refactoring/pypy/lang/js/test/test_interp.py
==============================================================================
--- pypy/branch/js-refactoring/pypy/lang/js/test/test_interp.py	(original)
+++ pypy/branch/js-refactoring/pypy/lang/js/test/test_interp.py	Wed Jun  4 19:22:37 2008
@@ -12,8 +12,9 @@
     bytecode.emit('LOAD_FLOATCONSTANT', 2)
     bytecode.emit('LOAD_FLOATCONSTANT', 4)
     bytecode.emit('ADD')
-    bytecode.run(ExecutionContext([W_Object()]), check_stack=False)
-    assert bytecode.stack[0].ToNumber(None) == 6.0
+    bytecode.emit('POP')
+    res = bytecode.run(ExecutionContext([W_Object()]), check_stack=False, retlast=True)
+    assert res.ToNumber(None) == 6.0
 
 def assertp(code, prints):
     l = []
@@ -561,6 +562,10 @@
     yield assertv, "x=0; x|=1; x;", 1
     yield assertv, "x=2; x^=2; x;", 0
 
+def test_not():
+    py.test.skip("not supported")
+    assertv("~1", -2)
+
 def test_twoarray():
     assertp("""
     a1 = new Array();



More information about the Pypy-commit mailing list