swig/Examples/test-suite/python/input_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

20 lines
313 B
Python

from input import *
f = Foo()
if f.foo(2) != 4:
raise RuntimeError
if f.foo(None) != None:
raise RuntimeError
if f.foo() != None:
raise RuntimeError
if sfoo("Hello") != "Hello world":
raise RuntimeError
if sfoo(None) != None:
raise RuntimeError
if sfoo() != None:
raise RuntimeError