testing1/collatz_test1.scala
author Christian Urban <urbanc@in.tum.de>
Fri, 17 Nov 2017 02:13:40 +0000
changeset 147 72f7dd1a3754
parent 144 716042628398
child 199 54befaf23648
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
125
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
127
b4def82f3f9f updated
Christian Urban <urbanc@in.tum.de>
parents: 125
diff changeset
     3
assert(List(0,1,4).contains(CW6a.collatz(1)))
125
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
127
b4def82f3f9f updated
Christian Urban <urbanc@in.tum.de>
parents: 125
diff changeset
     5
assert(CW6a.collatz(6) == 9)
125
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
127
b4def82f3f9f updated
Christian Urban <urbanc@in.tum.de>
parents: 125
diff changeset
     7
assert(CW6a.collatz(9) == 20)
125
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9