equal
deleted
inserted
replaced
30 |
30 |
31 |
31 |
32 //println("TEST4") |
32 //println("TEST4") |
33 |
33 |
34 Try(res.out.text()) match { |
34 Try(res.out.text()) match { |
35 case Success(v) if (pp(v, out) || pp(v, out2)) => println(s" Success. Printed out the correct output.\n") |
35 case Success(v) if (pp(v, out) || pp(v, out2)) => println(s" Success. Printed out the correct output.\n") |
36 case Success(v) => println(s" Printed out wrong or no output.\n${v}") ; throw new Exception("Wrong Output") |
36 case Success(v) => println(s" Printed out wrong or no output.\n${v}") ; throw new Exception("Wrong Output") |
37 case Failure(e) => println(s" Fail. Printed ${res.out.text()} instead\n") ; throw(e) |
37 case Failure(e) => println(s" Fail. Printed ${res.out.text()} instead\n") ; throw(e) |
38 } |
38 } |
39 |
39 |