marking1/collatz_test2.scala
author Christian Urban <urbanc@in.tum.de>
Fri, 23 Feb 2018 22:26:42 +0000
changeset 170 37b1bfcdba79
parent 158 94b11ac19b41
child 210 63a1376cbebd
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
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
assert(CW6a.collatz_max(10) == (20, 9))
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
assert(CW6a.collatz_max(100) == (119, 97))
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
assert(CW6a.collatz_max(1000) == (179, 871))
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
assert(CW6a.collatz_max(10000) == (262, 6171))
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
assert(CW6a.collatz_max(100000) == (351, 77031))
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
assert(CW6a.collatz_max(1000000) == (525, 837799))
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
assert(CW6a.collatz_max(2) == (2, 2))
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
assert(CW6a.collatz_max(77000) == (340, 52527))