Did I find the right examples for you? yes no

All Samples(18)  |  Call(16)  |  Derive(0)  |  Import(2)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/ootypesystem/test/test_oodict.py   plexnet(Download)
import py
from pypy.rpython.test.test_llinterp import interpret 
from pypy.rpython.ootypesystem.ootype import Signed, Float, Dict, new, typeOf, setDictTypes
 
def test_new():
    DT = Dict(Signed, Float)
    d = new(DT)
    assert typeOf(d) == DT
def test_length():
    DT = Dict(Signed, Float)
    d = new(DT)
    d.ll_set(42, 123.45)
    assert d.ll_length() == 1

src/s/y/Sypy-HEAD/rpython/ootypesystem/test/test_oodict.py   Sypy(Download)
import py
from pypy.rpython.test.test_llinterp import interpret 
from pypy.rpython.ootypesystem.ootype import Signed, Float, Dict, new, typeOf, setDictTypes
 
def test_new():
    DT = Dict(Signed, Float)
    d = new(DT)
    assert typeOf(d) == DT
def test_length():
    DT = Dict(Signed, Float)
    d = new(DT)
    d.ll_set(42, 123.45)
    assert d.ll_length() == 1