[pypy-svn] r19716 - pypy/dist/pypy/translator/js/test

ericvrp at codespeak.net ericvrp at codespeak.net
Thu Nov 10 16:09:04 CET 2005


Author: ericvrp
Date: Thu Nov 10 16:09:02 2005
New Revision: 19716

Modified:
   pypy/dist/pypy/translator/js/test/test_class.py
   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:
More tests that pass


Modified: pypy/dist/pypy/translator/js/test/test_class.py
==============================================================================
--- pypy/dist/pypy/translator/js/test/test_class.py	(original)
+++ pypy/dist/pypy/translator/js/test/test_class.py	Thu Nov 10 16:09:02 2005
@@ -22,15 +22,15 @@
         f = compile_function(llvmsnippet.class_simple2, [int])
         assert f(2) == 10
 
-    def DONTtest_inherit1(self):
+    def DONTtest_inherit1(self):    #unknown issue
         f = compile_function(llvmsnippet.class_inherit1, [])
         assert f() == 11
 
-    def DONTtest_inherit2(self):
+    def DONTtest_inherit2(self):    #issue v200 is not a function
         f = compile_function(llvmsnippet.class_inherit2, [])
         assert f() == 1
 
-    def DONTtest_method_of_base_class(self):
+    def DONTtest_method_of_base_class(self):    #issue v??? is not a function
         f = compile_function(llvmsnippet.method_of_base_class, [])
         assert f() == 14
 
@@ -38,11 +38,11 @@
         f = compile_function(llvmsnippet.attribute_from_base_class, [])
         assert f() == 4
 
-    def DONTtest_direct_call_of_virtual_method(self):
+    def DONTtest_direct_call_of_virtual_method(self):   #issue v??? is not a function
         f = compile_function(llvmsnippet.direct_call_of_virtual_method, [])
         assert f() == 14
 
-    def DONTtest_flow_type(self):
+    def test_flow_type(self):
         f = compile_function(llvmsnippet.flow_type, [])
         assert f() == 16
 
@@ -56,7 +56,7 @@
         assert f(True) == 1
         assert f(False) == 2
 
-    def DONTtest_global_instance(self):
+    def DONTtest_global_instance(self): #issue unknown
         f = compile_function(llvmsnippet.global_instance, [int])
         assert f(-1) == llvmsnippet.global_instance(-1)
         for i in range(20):
@@ -68,7 +68,7 @@
         f = compile_function(llvmsnippet.testgetset, [int])
         assert f(15) == 25
 
-    def DONTtest_call_degrading_func(self):
+    def test_call_degrading_func(self):
         f = compile_function(llvmsnippet.call_degrading_func, [bool])
         assert f(True) == llvmsnippet.call_degrading_func(True)
         assert f(False) == llvmsnippet.call_degrading_func(False)

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	Thu Nov 10 16:09:02 2005
@@ -164,7 +164,7 @@
     for i in range(10, 20):
         assert f(i) == fn(i)
 
-def DONTtest_catches():
+def DONTtest_catches(): #issue empty Object mallocs
     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	Thu Nov 10 16:09:02 2005
@@ -41,7 +41,7 @@
     f = compile_function(struct_constant, [])
     assert f() == struct_constant()
 
-def DONTtest_struct_constant3():
+def test_struct_constant3():
     structs = []
     cur = S
     for n in range(20):
@@ -73,7 +73,7 @@
     f = compile_function(struct_constant, [])
     assert f() == struct_constant()
 
-def DONTtest_struct_constant5():
+def test_struct_constant5():
     SPTR = lltype.GcStruct('sptr', ('a', lltype.Signed), ('b', S))
     STEST = lltype.GcStruct('test', ('sptr', lltype.Ptr(SPTR)))
     s = lltype.malloc(STEST)
@@ -86,7 +86,7 @@
     f = compile_function(struct_constant, [])
     assert f() == struct_constant()
 
-def DONTtest_struct_constant6():
+def test_struct_constant6():
     U = lltype.Struct('inlined', ('z', lltype.Signed))
     T = lltype.GcStruct('subtest', ('y', lltype.Signed))
     S = lltype.GcStruct('test', ('x', lltype.Ptr(T)), ('u', U), ('p', lltype.Ptr(U)))
@@ -101,7 +101,7 @@
     f = compile_function(struct_constant, [])
     assert f() == struct_constant()
 
-def DONTtest_aliasing():
+def DONTtest_aliasing():    #issue looks like empty Object mallocs
     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():
+def DONTtest_aliasing2():   #issue mallocs
     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():
+def DONTtest_array_constant3(): #malloc issue
     A = lltype.GcArray(('x', lltype.Signed))
     a = lltype.malloc(A, 3)
     a[0].x = 100
@@ -173,7 +173,7 @@
     f = compile_function(array_constant, [])
     assert f() == array_constant()
 
-def DONTtest_struct_array2():
+def test_struct_array2():
     A = lltype.Array(lltype.Signed)
     STEST = lltype.GcStruct('test', ('a', lltype.Signed), ('b', A))
     s = lltype.malloc(STEST, 2)
@@ -185,7 +185,7 @@
     f = compile_function(array_constant, [])
     assert f() == array_constant()
 
-def DONTtest_struct_array3():
+def test_struct_array3():
     A = lltype.Array(lltype.Signed)
     STEST = lltype.GcStruct('test', ('a', lltype.Signed), ('b', A))
     SBASE = lltype.GcStruct('base', ('p', lltype.Ptr(STEST)))

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	Thu Nov 10 16:09:02 2005
@@ -22,7 +22,7 @@
         assert f(2) == 13
         assert f(3) == 3
 
-    def DONTtest_array_add(self):
+    def DONTtest_array_add(self):   #unknown issue
         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
@@ -37,21 +37,21 @@
         f = compile_function(llvmsnippet.bool_array, [])
         assert f() == 1
 
-    def DONTtest_array_arg(self):
+    def DONTtest_array_arg(self):   #unknown issue
         f = compile_function(llvmsnippet.array_arg, [int])
         assert f(5) == 0
 
-    def DONTtest_array_len(self):
+    def DONTtest_array_len(self):   #unknown issue
         f = compile_function(llvmsnippet.array_len, [])
         assert f() == 10
 
-    def DONTtest_array_append(self):
+    def DONTtest_array_append(self):    #unknown issue
         f = compile_function(llvmsnippet.array_append, [int])
         for i in range(3):
             assert f(i) == 0
         assert f(3) == 10
 
-    def DONTtest_array_reverse(self):
+    def DONTtest_array_reverse(self):   #unknown issue
         f = compile_function(llvmsnippet.array_reverse, [int])
         assert f(0) == 1
         assert f(1) == 0
@@ -77,7 +77,7 @@
         for i in range(18):
             assert f(i) == i
 
-    def DONTtest_access_global_array(self):
+    def DONTtest_access_global_array(self): #issue with incorrect array order
         f = compile_function(llvmsnippet.access_global_array, [int, int, int])
         for i in range(5):
             for j in range(5):
@@ -86,7 +86,7 @@
             for j in range(5):
                 assert f(i, j, 0) == i + j
 
-    def DONTtest_circular_list(self):
+    def DONTtest_circular_list(self):   #unkjown issue
         f = compile_function(llvmsnippet.circular_list, [int])
         assert f(0) == 0
         assert f(1) == 1



More information about the Pypy-commit mailing list