swig/Examples/test-suite/python/smart_pointer_overload_runme.py
Jon Schlueter b77f3afafb autopep8 cleanup of Examples/test-suite/python
automated cleanup of python pep8 whitespace compliance
2015-05-08 21:35:52 -04:00

19 lines
330 B
Python

from smart_pointer_overload import *
f = Foo()
b = Bar(f)
if f.test(3) != 1:
raise RuntimeError
if f.test(3.5) != 2:
raise RuntimeError
if f.test("hello") != 3:
raise RuntimeError
if b.test(3) != 1:
raise RuntimeError
if b.test(3.5) != 2:
raise RuntimeError
if b.test("hello") != 3:
raise RuntimeError