marking/collatz_test1.scala
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Wed, 21 Dec 2016 01:19:25 +0000
changeset 93 21f41e08457d
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)