/trunk/Examples/test-suite/python/overload_extend_runme.py
Python | 14 lines | 12 code | 2 blank | 0 comment | 5 complexity | 7f717afb13e5e1010dd9098d0d118076 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- 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