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:
William S Fulton 2005-12-31 00:14:58 +00:00
commit 5bea1432da

View file

@ -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) {