core_testing1/collatz_test3.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 04 Nov 2023 18:53:37 +0000
changeset 476 7550c816187a
parent 472 6a77c260c8a5
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
158
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
472
6a77c260c8a5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 399
diff changeset
     2
def urbanmain() = {
6a77c260c8a5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 399
diff changeset
     3
6a77c260c8a5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 399
diff changeset
     4
  assert(C1.last_odd(113) == 85)
6a77c260c8a5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 399
diff changeset
     5
  assert(C1.last_odd(84) == 21)
6a77c260c8a5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 399
diff changeset
     6
  assert(C1.last_odd(605) == 341)
6a77c260c8a5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 399
diff changeset
     7
6a77c260c8a5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 399
diff changeset
     8
}