update with increment/decrement operator tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8143 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b04955373c
commit
842f4bbb27
1 changed files with 8 additions and 1 deletions
|
|
@ -76,7 +76,14 @@ public class operator_overload_runme {
|
||||||
Assert(i.Functor(1)==4);
|
Assert(i.Functor(1)==4);
|
||||||
Assert(i.Functor(1,2)==6);
|
Assert(i.Functor(1,2)==6);
|
||||||
|
|
||||||
|
// test ++ --
|
||||||
|
Op j = new Op(10);
|
||||||
|
j.PlusPlusPrefix();
|
||||||
|
j.PlusPlusPostfix(0);
|
||||||
|
Assert(j.getI() == 12);
|
||||||
|
j.MinusMinusPrefix();
|
||||||
|
j.MinusMinusPostfix(0);
|
||||||
|
Assert(j.getI() == 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Assert(boolean b) {
|
public static void Assert(boolean b) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue