mirror of https://github.com/swig/swig
%varargs tests for Java
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7092 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0ace507bd5
commit
697b6a4c4d
|
@ -18,11 +18,18 @@ public class varargs_runme {
|
|||
if (!varargs.test("Hello").equals("Hello"))
|
||||
throw new RuntimeException("Failed");
|
||||
|
||||
Foo f = new Foo("Greetings");
|
||||
Foo f = new Foo("BuonGiorno", 1);
|
||||
if (!f.getStr().equals("BuonGiorno"))
|
||||
throw new RuntimeException("Failed");
|
||||
|
||||
f = new Foo("Greetings");
|
||||
if (!f.getStr().equals("Greetings"))
|
||||
throw new RuntimeException("Failed");
|
||||
|
||||
if (!f.test("Hello").equals("Hello"))
|
||||
throw new RuntimeException("Failed");
|
||||
|
||||
if (!Foo.statictest("Grussen", 1).equals("Grussen"))
|
||||
throw new RuntimeException("Failed");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue