swig/SWIG/Examples/test-suite/python/overload_extend_runme.py
Marcelo Matus 378960a99a more cases, and C/C++ compatibility
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6349 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-06 17:32:03 +00:00

14 lines
273 B
Python

import overload_extend
f = overload_extend.Foo()
if f.test() != 0:
raise RuntimeError
if f.test(3) != 1:
raise RuntimeError
if f.test("hello") != 2:
raise RuntimeError
if f.test(3,2) != 5:
raise RuntimeError
if f.test(3.0) != 1003:
raise RuntimeError