Sha256: 8d03e806b9ea4c493c66dc398446049edf4b492ccf8cc656ca5d83b6cdf50d19

Contents?: true

Size: 1.14 KB

Versions: 30

Compression:

Stored size: 1.14 KB

Contents

from test_support import *
from javatests import ListTest

class PyListTest(ListTest):
       
   def __init__(self):
       ListTest.__init__(self)
       
   def newInstance(self, coll):
       if coll is None:
           return list()
       else:
           return list(coll)
       
   def isReadOnly(self):
       return False
       

class PyTupleTest(ListTest):
       
   def __init__(self):
       ListTest.__init__(self)
       
   def newInstance(self, coll):
       if coll is None:
           return tuple()
       else:
           return tuple(coll)
       
   def isReadOnly(self):
       return True       


# these first two tests just verify that we have a good unit test
print_test("ListTest.java driver (test_javalist.py)", 1)
print_test("running test on ArrayList", 2)
alt = ListTest.getArrayListTest(False)
alt.testAll()

print_test("running test on ArrayList (read-only)", 2)
alt = ListTest.getArrayListTest(True)
alt.testAll()


# Now run the critical tests

print_test("running test on PyListTest", 2)       
plt = PyListTest()
plt.testAll()       

print_test("running test on PyTupleTest", 2)       
ptt = PyTupleTest()
ptt.testAll()  

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rubyfox-server-2.19.2.0 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.17.3.2 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.17.3.1 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.17.3.0 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.16.3.2 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.16.3.1 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.16.0.4 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.16.0.3 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.16.0.2 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.16.0.1 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.16.0.0 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.13.7.3 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.13.6.2 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.13.6.1 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.13.5.1 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.13.4.1 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.13.3.1 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.12.5.1 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.12.5.0 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py
rubyfox-server-2.12.4.0 lib/rubyfox/server/data/lib/Lib/test/test_javalist.py