testing1/collatz_test1.scala
author Christian Urban <urbanc@in.tum.de>
Tue, 14 Nov 2017 13:14:47 +0000
changeset 144 716042628398
parent 127 testing/collatz_test1.scala@b4def82f3f9f
child 147 72f7dd1a3754
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
125
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
127
b4def82f3f9f updated
Christian Urban <urbanc@in.tum.de>
parents: 125
diff changeset
     2
assert(List(0,1,4).contains(CW6a.collatz(1)))
125
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
127
b4def82f3f9f updated
Christian Urban <urbanc@in.tum.de>
parents: 125
diff changeset
     4
assert(CW6a.collatz(6) == 9)
125
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
127
b4def82f3f9f updated
Christian Urban <urbanc@in.tum.de>
parents: 125
diff changeset
     6
assert(CW6a.collatz(9) == 20)
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