core_marking1/collatz_test1.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Wed, 02 Nov 2022 21:49:42 +0000
changeset 430 274c865b3878
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