forked from JavaTX/JavaCompilerCore
Testfall anfügen
This commit is contained in:
parent
654f347450
commit
16ca123780
@ -3,9 +3,8 @@ import java.lang.Boolean;
|
||||
import java.lang.Object;
|
||||
|
||||
public class IfTest{
|
||||
Object m1(Boolean b) {
|
||||
Object m1(b) {
|
||||
Integer i;
|
||||
Boolean b;
|
||||
if(b) {
|
||||
return i;
|
||||
}else{
|
||||
|
8
test/javFiles/Sorting.jav
Normal file
8
test/javFiles/Sorting.jav
Normal file
@ -0,0 +1,8 @@
|
||||
import java.util.List;
|
||||
import java.util.Collection;
|
||||
|
||||
class Sorting{
|
||||
void merge(a, b){
|
||||
a.addAll(b);
|
||||
}
|
||||
}
|
@ -100,6 +100,10 @@ public class JavaTXCompilerTest {
|
||||
public void ifStatement() throws IOException, ClassNotFoundException {
|
||||
execute(new File(rootDirectory+"IfTest.jav"));
|
||||
}
|
||||
@Test
|
||||
public void multipleSolutions() throws IOException, ClassNotFoundException {
|
||||
execute(new File(rootDirectory+"Sorting.jav"));
|
||||
}
|
||||
|
||||
private static class TestResultSet{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user