testing/collatz_test2.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
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
assert(collatz_max(10) == (9, 20))
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
assert(collatz_max(100) == (97, 119))
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
assert(collatz_max(1000) == (871, 179))
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
assert(collatz_max(10000) == (6171, 262))
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
assert(collatz_max(100000) == (77031, 351))
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
dcaab8068baa updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
assert(collatz_max(1000000) == (837799, 525))