extra operator++ test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8256 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6c07923bf5
commit
49b7caf240
1 changed files with 8 additions and 0 deletions
|
|
@ -84,6 +84,14 @@ public class operator_overload_runme {
|
|||
j.MinusMinusPrefix();
|
||||
j.MinusMinusPostfix(0);
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue