diff -r a057dc4457fc -r 87b9e3e2c1a7 marking1/collatz_test1.scala --- a/marking1/collatz_test1.scala Tue Oct 29 11:11:44 2019 +0000 +++ b/marking1/collatz_test1.scala Tue Oct 29 14:12:24 2019 +0000 @@ -1,14 +1,8 @@ -def myassert(cond : => Boolean) = { - try { - assert(cond) - } catch { - case _ : Throwable => System.exit(1) - } -} -myassert(collatz(1) == 0) -myassert(collatz(6) == 8) -myassert(collatz(9) == 19) -myassert(collatz(9000) == 47) +assert(CW6a.collatz(1) == 0) +assert(CW6a.collatz(6) == 8) +assert(CW6a.collatz(9) == 19) +assert(CW6a.collatz(9000) == 47) +