core_marking1/collatz_test1.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sun, 15 Sep 2024 12:57:59 +0100
changeset 493 244df77507c2
parent 424 daf561a83ba6
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
373
d29cd5883c7b updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     1
d29cd5883c7b updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     2
424
Christian Urban <christian.urban@kcl.ac.uk>
parents: 373
diff changeset
     3
assert(C1.collatz(1) == 0)
Christian Urban <christian.urban@kcl.ac.uk>
parents: 373
diff changeset
     4
assert(C1.collatz(6) == 8)
Christian Urban <christian.urban@kcl.ac.uk>
parents: 373
diff changeset
     5
assert(C1.collatz(9) == 19)
Christian Urban <christian.urban@kcl.ac.uk>
parents: 373
diff changeset
     6
assert(C1.collatz(9000) == 47)
373
d29cd5883c7b updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     7
d29cd5883c7b updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     8