[pypy-svn] r26403 - pypy/dist/pypy/translator/cl/test

sanxiyn at codespeak.net sanxiyn at codespeak.net
Thu Apr 27 08:31:03 CEST 2006


Author: sanxiyn
Date: Thu Apr 27 08:30:59 2006
New Revision: 26403

Added:
   pypy/dist/pypy/translator/cl/test/test_list.py
Modified:
   pypy/dist/pypy/translator/cl/test/test_cltrans_oo.py
Log:
Split list tests to the separate file


Modified: pypy/dist/pypy/translator/cl/test/test_cltrans_oo.py
==============================================================================
--- pypy/dist/pypy/translator/cl/test/test_cltrans_oo.py	(original)
+++ pypy/dist/pypy/translator/cl/test/test_cltrans_oo.py	Thu Apr 27 08:30:59 2006
@@ -96,17 +96,3 @@
     cl_dynamic_instance = make_cl_func(dynamic_instance, [bool])
     assert cl_dynamic_instance(True) == 1
     assert cl_dynamic_instance(False) == 2
-
-def test_list_length():
-    def list_length_one(number):
-        lst = [number]
-        return len(lst)
-    cl_list_length_one = make_cl_func(list_length_one, [int])
-    assert cl_list_length_one(0) == 1
-
-def test_list_get():
-    def list_and_get(number):
-        lst = [number]
-        return lst[0]
-    cl_list_and_get = make_cl_func(list_and_get, [int])
-    assert cl_list_and_get(1985) == 1985

Added: pypy/dist/pypy/translator/cl/test/test_list.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/translator/cl/test/test_list.py	Thu Apr 27 08:30:59 2006
@@ -0,0 +1,15 @@
+from pypy.translator.cl.buildcl import make_cl_func
+
+def test_list_length():
+    def list_length_one(number):
+        lst = [number]
+        return len(lst)
+    cl_list_length_one = make_cl_func(list_length_one, [int])
+    assert cl_list_length_one(0) == 1
+
+def test_list_get():
+    def list_and_get(number):
+        lst = [number]
+        return lst[0]
+    cl_list_and_get = make_cl_func(list_and_get, [int])
+    assert cl_list_and_get(1985) == 1985



More information about the Pypy-commit mailing list