test virtual operators

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9357 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-09-25 20:15:24 +00:00
commit eae32a8da7
3 changed files with 52 additions and 4 deletions

View file

@ -94,6 +94,16 @@ public class operator_overload_runme {
Op op = j.MinusMinusPostfix(0);
Assert(j.getI() == op.getI()-1);
}
// cast operators
Op k = new Op(3);
int check_k = k.IntCast();
Assert(check_k == 3);
Op l = new Op(4);
double check_l = l.DoubleCast();
Assert(check_l == 4);
}
public static void Assert(boolean b) {