core_testing1/collatz_test1.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 06 Nov 2021 00:06:39 +0000
changeset 399 b17a98b0c52f
parent 345 pre_testing1/collatz_test1.scala@40657f9a4e4a
child 472 6a77c260c8a5
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
147
72f7dd1a3754 updated
Christian Urban <urbanc@in.tum.de>
parents: 144
diff changeset
     1
399
b17a98b0c52f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 345
diff changeset
     2
import C1._
125
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
281
87b9e3e2c1a7 updated
Christian Urban <urbanc@in.tum.de>
parents: 199
diff changeset
     4
assert(collatz(1) == 0) 
199
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 147
diff changeset
     5
assert(collatz(6) == 8)
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 147
diff changeset
     6
assert(collatz(9) == 19)
125
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8