import source from 1.3.40
[external/swig.git] / Examples / test-suite / python / smart_pointer_overload_runme.py
1 from smart_pointer_overload import *
2
3 f = Foo()
4 b = Bar(f)
5
6
7 if f.test(3) != 1:
8     raise RuntimeError
9 if f.test(3.5) != 2:
10     raise RuntimeError
11 if f.test("hello") != 3:
12     raise RuntimeError
13
14 if b.test(3) != 1:
15     raise RuntimeError
16 if b.test(3.5) != 2:
17     raise RuntimeError
18 if b.test("hello") != 3:
19     raise RuntimeError
20
21