[pypy-svn] r19724 - pypy/dist/pypy/translator/js/test
ericvrp at codespeak.net
ericvrp at codespeak.net
Thu Nov 10 17:17:27 CET 2005
Author: ericvrp
Date: Thu Nov 10 17:17:26 2005
New Revision: 19724
Modified:
pypy/dist/pypy/translator/js/test/test_exc_operation.py
pypy/dist/pypy/translator/js/test/test_typed.py
Log:
[117 passing, 46 known to fail]
The 46 that are known to fail now have a comment stateing their
probable issue. Many of these have to do that we no longer keep
the types around.
Furthermore I would like to have the exception raising operations
implemented in Python too. I can't remember why they are required
to be implemented in the backend. But at least genc, genllvm and genjs,
could share them on a somewhat higher level.
Modified: pypy/dist/pypy/translator/js/test/test_exc_operation.py
==============================================================================
--- pypy/dist/pypy/translator/js/test/test_exc_operation.py (original)
+++ pypy/dist/pypy/translator/js/test/test_exc_operation.py Thu Nov 10 17:17:26 2005
@@ -4,7 +4,7 @@
from pypy.rpython.rarithmetic import r_uint, ovfcheck, ovfcheck_lshift
from pypy.translator.test import snippet
-def DONTtest_zerodiv_int():
+def DONTtest_zerodiv_int(): #issue no exception raising operations yet
def zerodiv_int(n):
try:
r=100/n
@@ -15,7 +15,7 @@
for i in (-50,0,50):
assert f(i) == zerodiv_int(i)
-def DONTtest_zerodiv_uint():
+def DONTtest_zerodiv_uint(): #issue no exception raising operations yet
def zerodiv_uint(n):
try:
r=100/n
@@ -26,7 +26,7 @@
for i in (0,50,100):
assert f(i) == zerodiv_uint(i)
-def DONTtest_zerodivrem_int():
+def DONTtest_zerodivrem_int(): #issue no exception raising operations yet
def zerodivrem_int(n):
try:
r=100%n
@@ -37,7 +37,7 @@
for i in (-50,0,50):
assert f(i) == zerodivrem_int(i)
-def DONTtest_zerodivrem_uint():
+def DONTtest_zerodivrem_uint(): #issue no exception raising operations yet
def zerodivrem_uint(n):
try:
r=100%n
@@ -48,7 +48,7 @@
for i in (0,50,100):
assert f(i) == zerodivrem_uint(i)
-def DONTtest_neg_int_ovf():
+def DONTtest_neg_int_ovf(): #issue no exception raising operations yet
def neg_int_ovf(n):
try:
r=ovfcheck(-n)
@@ -59,7 +59,7 @@
for i in (-sys.maxint-1, -sys.maxint, 0, sys.maxint-1, sys.maxint):
assert f(i) == neg_int_ovf(i)
-def DONTtest_abs_int_ovf():
+def DONTtest_abs_int_ovf(): #issue no exception raising operations yet
def abs_int_ovf(n):
try:
r=ovfcheck(abs(n))
Modified: pypy/dist/pypy/translator/js/test/test_typed.py
==============================================================================
--- pypy/dist/pypy/translator/js/test/test_typed.py (original)
+++ pypy/dist/pypy/translator/js/test/test_typed.py Thu Nov 10 17:17:26 2005
@@ -253,7 +253,7 @@
f = compile_function(wrapper, [int])
assert f(42)
-def DONTtest_str2int():
+def DONTtest_str2int(): #issue with empty Object malloc
def fn(i):
return str(i)
def wrapper(i):
@@ -270,7 +270,7 @@
for i in range(-15, 15):
assert f(i) == fn(i)
-def XXXtest_uint_invert():
+def DONTtest_uint_invert(): #issue with ~i
def fn(i):
inverted = ~i
inverted -= sys.maxint
@@ -298,14 +298,14 @@
for i in (-100.1 -50.2, -0.0, 0.0, 25.3, 50.4):
assert f(i) == float_abs_(i)
-def DONTtest_cast_to_int():
+def test_cast_to_int():
def casting(v):
return int(ord(chr(v)))
f = compile_function(casting, [int])
for ii in range(255):
assert f(ii) == ii
-def DONTtest_char_comparisions():
+def DONTtest_char_comparisons(): #issue with illegal cast syntax
def comps(v):
x = chr(v)
res = 0
More information about the Pypy-commit
mailing list