extra operator++ test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8256 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e364bc65e1
commit
42e48ca9f6
1 changed files with 8 additions and 0 deletions
|
|
@ -84,6 +84,14 @@ public class operator_overload_runme {
|
||||||
j.MinusMinusPrefix();
|
j.MinusMinusPrefix();
|
||||||
j.MinusMinusPostfix(0);
|
j.MinusMinusPostfix(0);
|
||||||
Assert(j.getI() == 10);
|
Assert(j.getI() == 10);
|
||||||
|
{
|
||||||
|
Op op = j.PlusPlusPostfix(0);
|
||||||
|
Assert(j.getI() == op.getI()+1);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
Op op = j.MinusMinusPostfix(0);
|
||||||
|
Assert(j.getI() == op.getI()-1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Assert(boolean b) {
|
public static void Assert(boolean b) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue