core_testing1/collatz_test2.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 26 Apr 2024 17:29:30 +0100
changeset 485 19b75e899d37
parent 472 6a77c260c8a5
permissions -rw-r--r--
updated


def urbanmain() = {

  import C1._

  assert(collatz_max(10) == (19, 9))
  assert(collatz_max(100) == (118, 97))
  assert(collatz_max(1000) == (178, 871))
  assert(collatz_max(10000) == (261, 6171))
  assert(collatz_max(100000) == (350, 77031))
  assert(collatz_max(1000000) == (524, 837799))
}