member enum in director method test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6825 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f0161d3b3b
commit
f9f4c3ff9c
1 changed files with 9 additions and 0 deletions
|
|
@ -22,6 +22,9 @@ public class director_enum_runme {
|
|||
if (a.ping_ref(Hallo.awright) != Hallo.hello) {
|
||||
throw new RuntimeException ( "a.ping_ref()" );
|
||||
}
|
||||
if (a.ping_member_enum(Foo.Bye.adios) != Foo.Bye.aufwiedersehen) {
|
||||
throw new RuntimeException ( "a.ping_member_enum()" );
|
||||
}
|
||||
|
||||
Foo b = new Foo();
|
||||
|
||||
|
|
@ -31,6 +34,9 @@ public class director_enum_runme {
|
|||
if (b.ping_ref(Hallo.awright) != Hallo.awright) {
|
||||
throw new RuntimeException ( "b.ping_ref()" );
|
||||
}
|
||||
if (b.ping_member_enum(Foo.Bye.adios) != Foo.Bye.adios) {
|
||||
throw new RuntimeException ( "b.ping_member_enum()" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -41,5 +47,8 @@ class MyFoo extends Foo {
|
|||
public Hallo say_hi_ref(Hallo h) {
|
||||
return Hallo.hello;
|
||||
}
|
||||
public Foo.Bye say_bye(Foo.Bye b) {
|
||||
return Foo.Bye.aufwiedersehen;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue