From: William F. <wsf...@us...> - 2005-03-21 22:04:33
|
Update of /cvsroot/swig/SWIG/Examples/test-suite/java In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7658/Examples/test-suite/java Modified Files: varargs_runme.java Log Message: %varargs tests for Java Index: varargs_runme.java =================================================================== RCS file: /cvsroot/swig/SWIG/Examples/test-suite/java/varargs_runme.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** varargs_runme.java 19 Mar 2003 20:49:40 -0000 1.1 --- varargs_runme.java 21 Mar 2005 22:04:19 -0000 1.2 *************** *** 19,23 **** throw new RuntimeException("Failed"); ! Foo f = new Foo("Greetings"); if (!f.getStr().equals("Greetings")) throw new RuntimeException("Failed"); --- 19,27 ---- throw new RuntimeException("Failed"); ! 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"); *************** *** 25,28 **** --- 29,35 ---- if (!f.test("Hello").equals("Hello")) throw new RuntimeException("Failed"); + + if (!Foo.statictest("Grussen", 1).equals("Grussen")) + throw new RuntimeException("Failed"); } } |