[pypy-svn] r27165 - pypy/dist/pypy/rpython/ootypesystem/test
antocuni at codespeak.net
antocuni at codespeak.net
Sat May 13 13:46:52 CEST 2006
Author: antocuni
Date: Sat May 13 13:46:43 2006
New Revision: 27165
Modified:
pypy/dist/pypy/rpython/ootypesystem/test/test_ooann.py
Log:
Added a test for List.
Modified: pypy/dist/pypy/rpython/ootypesystem/test/test_ooann.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/test/test_ooann.py (original)
+++ pypy/dist/pypy/rpython/ootypesystem/test/test_ooann.py Sat May 13 13:46:43 2006
@@ -185,3 +185,16 @@
s = a.build_types(oof, [bool])
assert isinstance(s, annmodel.SomeBool)
assert not s.is_constant()
+
+def test_list():
+ L = List(Signed)
+ def oof():
+ l = new(L)
+ l._ll_resize(42)
+ return l
+
+ a = RPythonAnnotator()
+ s = a.build_types(oof, [])
+ #a.translator.view()
+
+ assert s == annmodel.SomeOOInstance(L)
More information about the Pypy-commit
mailing list