marking1/collatz_test1.scala
author Christian Urban <urbanc@in.tum.de>
Mon, 04 Nov 2019 11:48:37 +0000
changeset 310 335079d938aa
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