update with increment/decrement operator tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8143 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fc0d1e82bc
commit
5bea1432da
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,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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue