testing/collatz_test1.scala
author Christian Urban <urbanc@in.tum.de>
Sun, 05 Nov 2017 12:02:09 +0000
changeset 125 dcaab8068baa
child 127 b4def82f3f9f
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
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
assert(List(0,1,4).contains(collatz(1)))
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
assert(collatz(6) == 9)
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
assert(collatz(9) == 20)
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8