%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:
William S Fulton 2005-03-21 22:04:19 +00:00
parent 0ace507bd5
commit 697b6a4c4d
1 changed files with 8 additions and 1 deletions

View File

@ -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");
}
}