marking1/collatz_test1.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 11 Mar 2023 23:24:15 +0000
changeset 469 48de09728447
parent 281 87b9e3e2c1a7
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
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
281
87b9e3e2c1a7 updated
Christian Urban <urbanc@in.tum.de>
parents: 267
diff changeset
     3
assert(CW6a.collatz(1) == 0)
87b9e3e2c1a7 updated
Christian Urban <urbanc@in.tum.de>
parents: 267
diff changeset
     4
assert(CW6a.collatz(6) == 8)
87b9e3e2c1a7 updated
Christian Urban <urbanc@in.tum.de>
parents: 267
diff changeset
     5
assert(CW6a.collatz(9) == 19)
87b9e3e2c1a7 updated
Christian Urban <urbanc@in.tum.de>
parents: 267
diff changeset
     6
assert(CW6a.collatz(9000) == 47)
158
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
281
87b9e3e2c1a7 updated
Christian Urban <urbanc@in.tum.de>
parents: 267
diff changeset
     8