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:
parent
d5d8f1a3ee
commit
eae32a8da7
3 changed files with 52 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue