[pypy-svn] r22626 - pypy/dist/pypy/rpython/memory/test
rxe at codespeak.net
rxe at codespeak.net
Wed Jan 25 09:55:03 CET 2006
Author: rxe
Date: Wed Jan 25 09:55:01 2006
New Revision: 22626
Modified:
pypy/dist/pypy/rpython/memory/test/test_convertlltype.py
Log:
Trivial - tests another branch of code.
Modified: pypy/dist/pypy/rpython/memory/test/test_convertlltype.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/test/test_convertlltype.py (original)
+++ pypy/dist/pypy/rpython/memory/test/test_convertlltype.py Wed Jan 25 09:55:01 2006
@@ -3,7 +3,6 @@
def test_convert_primitives():
cvter = LLTypeConverter(lladdress.NULL)
- addr = lladdress.raw_malloc(10)
c1 = cvter.convert(1)
c = cvter.convert("c")
assert c1 == 1
@@ -18,7 +17,9 @@
a = cvter.convert(lls)
assert a[0] == 1
assert a[1] == 2
-
+ b = cvter.convert(lls)
+ assert a == b
+
def test_convert_array_of_structs():
cvter = LLTypeConverter(lladdress.raw_malloc(1000))
S = lltype.Struct("test", ("v1", lltype.Signed), ("v2", lltype.Signed))
More information about the Pypy-commit
mailing list