Commit 66bc6de4 authored by Carlos Galindo's avatar Carlos Galindo
Browse files

New tests based on coverage analysis

parent f39f9ef1
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
class Test {

    public static void main(String[] args) {
        try {
            if (true)
                throw new RuntimeException();
            throw new InterruptedException();
        } catch (RuntimeException | InterruptedException e) {
            System.out.println("ok");
        }
    }
}
+1 −0
Original line number Diff line number Diff line
9
+12 −0
Original line number Diff line number Diff line
class Test {

    public static void main(String[] args) {
        try {
            if (true)
                throw new RuntimeException();
            throw new InterruptedException();
        } catch (RuntimeException | InterruptedException e) {
            System.out.println("ok");
        }
    }
}
+25 −0
Original line number Diff line number Diff line
class Test {

    int a = 10;

    void f() {
        a += 20;
    }

    public static void main(String[] args) {
        Test t = new Test();
        Test[] array = new Test[] { t };
        TestContainer tc = new TestContainer();
        (t).f();
        array[0].f();
        (true ? t : array[0]).f();
        tc.test.f();
        System.out.println(t.a + array[0].a + tc.test.a);
    }
}

class TestContainer {

    Test test = new Test();
}
Loading