add tests for director+enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6376 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
cee113efe7
commit
4a03c4edd5
2 changed files with 70 additions and 0 deletions
12
SWIG/Examples/test-suite/python/director_enum_runme.py
Normal file
12
SWIG/Examples/test-suite/python/director_enum_runme.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import director_enum
|
||||
|
||||
class MyFoo(director_enum.Foo):
|
||||
def say_hi(self, val):
|
||||
return val
|
||||
|
||||
|
||||
b = director_enum.Foo()
|
||||
a = MyFoo()
|
||||
|
||||
if a.say_hi(director_enum.hello) != b.say_hello(director_enum.hi):
|
||||
raise RuntimeError
|
||||
Loading…
Add table
Add a link
Reference in a new issue