[pypy-svn] r20987 - pypy/dist/pypy/translator/js/test
ericvrp at codespeak.net
ericvrp at codespeak.net
Sat Dec 10 01:17:10 CET 2005
Author: ericvrp
Date: Sat Dec 10 01:17:09 2005
New Revision: 20987
Modified:
pypy/dist/pypy/translator/js/test/test_exception.py
pypy/dist/pypy/translator/js/test/test_lltype.py
pypy/dist/pypy/translator/js/test/test_seq.py
Log:
Some more passing tests and a better understanding of what else needs fixing
Modified: pypy/dist/pypy/translator/js/test/test_exception.py
==============================================================================
--- pypy/dist/pypy/translator/js/test/test_exception.py (original)
+++ pypy/dist/pypy/translator/js/test/test_exception.py Sat Dec 10 01:17:09 2005
@@ -164,7 +164,7 @@
for i in range(10, 20):
assert f(i) == fn(i)
-def DONTtest_catches(): #issue empty Object mallocs
+def DONTtest_catches(): #issue with last exception value not being set
def raises(i):
if i == 3:
raise MyException, 12
Modified: pypy/dist/pypy/translator/js/test/test_lltype.py
==============================================================================
--- pypy/dist/pypy/translator/js/test/test_lltype.py (original)
+++ pypy/dist/pypy/translator/js/test/test_lltype.py Sat Dec 10 01:17:09 2005
@@ -101,7 +101,7 @@
f = compile_function(struct_constant, [])
assert f() == struct_constant()
-def DONTtest_aliasing(): #issue looks like empty Object mallocs
+def DONTtest_aliasing(): #issue with missing operation (v229 = getelementptr arrayinstance, word 0, uint 1, i_0)
B = lltype.Struct('B', ('x', lltype.Signed))
A = lltype.Array(B)
global_a = lltype.malloc(A, 5, immortal=True)
@@ -113,7 +113,7 @@
assert f(2) == 0
assert f(3) == 17
-def DONTtest_aliasing2(): #issue mallocs
+def DONTtest_aliasing2(): #issue with missing operation (v230 = getelementptr arrayinstance, word 0, uint 1, i_0)
B = lltype.Struct('B', ('x', lltype.Signed))
A = lltype.Array(B)
C = lltype.Struct('C', ('x', lltype.Signed), ('bptr', lltype.Ptr(B)))
@@ -150,7 +150,7 @@
f = compile_function(array_constant, [])
assert f() == array_constant()
-def DONTtest_array_constant3(): #malloc issue
+def DONTtest_array_constant3(): #issue with missing operation (v289 = getelementptr arrayinstance, word 0, uint 1, 0)
A = lltype.GcArray(('x', lltype.Signed))
a = lltype.malloc(A, 3)
a[0].x = 100
Modified: pypy/dist/pypy/translator/js/test/test_seq.py
==============================================================================
--- pypy/dist/pypy/translator/js/test/test_seq.py (original)
+++ pypy/dist/pypy/translator/js/test/test_seq.py Sat Dec 10 01:17:09 2005
@@ -22,7 +22,7 @@
assert f(2) == 13
assert f(3) == 3
- def DONTtest_array_add(self): #unknown issue
+ def test_array_add(self):
f = compile_function(llvmsnippet.array_add, [int, int, int, int, int])
assert f(1,2,3,4,0) == 1
assert f(1,2,3,4,1) == 2
@@ -41,7 +41,7 @@
f = compile_function(llvmsnippet.array_arg, [int])
assert f(5) == 0
- def DONTtest_array_len(self): #unknown issue
+ def test_array_len(self):
f = compile_function(llvmsnippet.array_len, [])
assert f() == 10
@@ -86,7 +86,7 @@
for j in range(5):
assert f(i, j, 0) == i + j
- def DONTtest_circular_list(self): #unkjown issue
+ def test_circular_list(self):
f = compile_function(llvmsnippet.circular_list, [int])
assert f(0) == 0
assert f(1) == 1
More information about the Pypy-commit
mailing list