Exemple #1
0
    def test_demo(self):
        gv = rcompile(rgenop, demo, [int], type_system=self.type_system)
        F1 = self.FuncType([lltype.Signed], lltype.Signed)
        func = gv.revealconst(self.Ptr(F1))

        res = testgengraph(self.deref(func).graph, [10])
        assert res == demo(10) == 945
def test_demo():
    gv = rcompile(rgenop, demo, [int])
    F1 = lltype.FuncType([lltype.Signed], lltype.Signed)
    ptr = gv.revealconst(lltype.Ptr(F1))

    res = testgengraph(ptr._obj.graph, [10])
    assert res == demo(10) == 945
    def test_demo(self):
        gv = rcompile(rgenop, demo, [int], type_system=self.type_system)
        F1 = self.FuncType([lltype.Signed], lltype.Signed)
        func = gv.revealconst(self.Ptr(F1))

        res = testgengraph(self.deref(func).graph, [10])
        assert res == demo(10) == 945
Exemple #4
0
 def runner(*args):
     return testgengraph(graph, list(args))
Exemple #5
0
 def runner(*args):
     return testgengraph(graph, list(args))