diff options
Diffstat (limited to 'trunk/Examples/test-suite/python/using_extend_runme.py')
-rw-r--r-- | trunk/Examples/test-suite/python/using_extend_runme.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/trunk/Examples/test-suite/python/using_extend_runme.py b/trunk/Examples/test-suite/python/using_extend_runme.py new file mode 100644 index 000000000..14615a05e --- /dev/null +++ b/trunk/Examples/test-suite/python/using_extend_runme.py @@ -0,0 +1,21 @@ +from using_extend 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 *)" + +if f.blah(3,4) != 7: + raise RuntimeError,"blah(int,int)" + +if f.blah(3.5,7.5) != (3.5+7.5): + raise RuntimeError,"blah(double,double)" + + +if f.duh(3) != 3: + raise RuntimeError,"duh(int)" |