marking/collatz_test1.scala
author Christian Urban <urbanc@in.tum.de>
Sat, 16 Jun 2018 00:07:32 +0100
changeset 182 d3d912d7e17f
parent 64 d6f97b562424
permissions -rw-r--r--
updated


assert(List(0,1).contains(collatz(1)))

assert(collatz(2)==2)

assert(collatz(9)==20)

assert(collatz(9000)==48)