marking1/collatz_test2.scala
author Christian Urban <urbanc@in.tum.de>
Mon, 11 Jun 2018 14:59:09 +0100
changeset 180 35b4dc785a40
parent 158 94b11ac19b41
child 210 63a1376cbebd
permissions -rw-r--r--
test



assert(CW6a.collatz_max(10) == (20, 9))

assert(CW6a.collatz_max(100) == (119, 97))

assert(CW6a.collatz_max(1000) == (179, 871))

assert(CW6a.collatz_max(10000) == (262, 6171))

assert(CW6a.collatz_max(100000) == (351, 77031))

assert(CW6a.collatz_max(1000000) == (525, 837799))

assert(CW6a.collatz_max(2) == (2, 2))

assert(CW6a.collatz_max(77000) == (340, 52527))