cw5_marking/c6.sc
changeset 1039 86d59b074abe
parent 977 7a02c5b9e0df
equal deleted inserted replaced
1038:34d2cfb7761a 1039:86d59b074abe
    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