/tags/rel-1-3-15/SWIG/Examples/test-suite/python/using_composition_runme.py
# · Python · 11 lines · 8 code · 3 blank · 0 comment · 3 complexity · 612e67a0d06d628b020cde54f369cfb5 MD5 · raw file
- from using_composition import *
- f = FooBar()
- if f.blah(3) != 3:
- raise RuntimeError,"blah(int)"
- if f.blah(3.5) != 3.5:
- raise RuntimeError,"blah(double)"
- if f.blah("hello") != "hello":
- raise RuntimeError,"blah(char *)"