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:
William S Fulton 2004-12-02 21:22:17 +00:00
commit f9f4c3ff9c

View file

@ -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;
}
}