Commit a25d1ec8 authored by Carlos Galindo's avatar Carlos Galindo
Browse files

updated regression tests

parent 0b11fa73
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2,6 +2,11 @@ public class Problem3 {

    public static void main() throws Exception {
        x = 0;
        try {
            f();
        } catch (Exception e) {
        }
        x = 1;
        f();
    }

+3 −0
Original line number Diff line number Diff line
class A {

    int x = 0;

    A(int x) {
        this.x = x;
    }

    int getx() {
+2 −0
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@ public class Test_2 {

    public static void main(String[] args) {
        int x = 1;
        x++;
        ++x;
        int y = 0;
        x = x + y;
        System.out.println(x);
+13 −0
Original line number Diff line number Diff line
public class Bucles {

    public static void main(String[] args) {
        int x = 2;
        try {
            for (int i = 0; i <= 12; i++) {
                metodoGeneradorExcepciones(x);
            }
        } catch (ExceptionB a) {
        } catch (ExceptionA a) {
        } catch (Exception a) {
            System.out.println("Se lanza Exception");
        }
    }

    static void metodoGeneradorExcepciones(int x) throws Exception {
        if (x == 0)
            throw new ExceptionA();