[pypy-svn] r26262 - pypy/dist/pypy/rpython/ootypesystem/test

antocuni at codespeak.net antocuni at codespeak.net
Mon Apr 24 14:25:43 CEST 2006


Author: antocuni
Date: Mon Apr 24 14:25:39 2006
New Revision: 26262

Modified:
   pypy/dist/pypy/rpython/ootypesystem/test/test_oodict.py
Log:
Fixed some little bugs in tests.


Modified: pypy/dist/pypy/rpython/ootypesystem/test/test_oodict.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/test/test_oodict.py	(original)
+++ pypy/dist/pypy/rpython/ootypesystem/test/test_oodict.py	Mon Apr 24 14:25:39 2006
@@ -10,11 +10,12 @@
 def test_length():
     DT = Dict(Signed, Float)
     d = new(DT)
-    d.ll_setitem(42, 123.45)
+    d.ll_set(42, 123.45)
     assert d.ll_length() == 1
 
 def test_setitem_getitem():
     DT = Dict(Signed, Float)
     d = new(DT)
-    d.ll_setitem(42, 123.45)
-    assert d.ll_getitem(42) == 123.45
+    d.ll_set(42, 123.45)
+    assert d.ll_get(42, 0.0) == 123.45
+    assert d.ll_get(43, 0.0) == 0.0



More information about the Pypy-commit mailing list