pypy/module/_cppyy/test/test_cppyy.py::AppTestCPPYY::()::test06_method_double
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0xf34c1f8c>
def test06_method_double(self):
"""Test passing of a double and returning of double on a method."""
import _cppyy
t = self.example01
e = self.instantiate(t, 13)
res = t.get_overload("addDataToDouble")(e, 16)
assert round(res-29, 8) == 0.
e.__destruct__()
e = self.instantiate(t, -13)
res = t.get_overload("addDataToDouble")(e, 16)
assert round(res-3, 8) == 0.
e.__destruct__()
> assert t.get_overload("getCount")() == 0
E (application-level) AssertionError: assert 1 == 0
E + where 1 = <CPPStaticOverload object at 0xf31c92ac>()
E + where <CPPStaticOverload object at 0xf31c92ac> = <bound method CPPClassDecl.get_overload of <CPPClassDecl object at 0xf344372c>>('getCount')
E + where <bound method CPPClassDecl.get_overload of <CPPClassDecl object at 0xf344372c>> = <CPPClassDecl object at 0xf344372c>.get_overload
[/build_dir/own-linux-x86-32/build/pypy/module/_cppyy/test/test_cppyy.py:182]:17: AssertionError
builder: own-linux-x86-32 build #9360
test: pypy/module/_cppyy/test/test_cppyy/py/AppTestCPPYY/()/test06_method_double