author | Christian Urban <urbanc@in.tum.de> |
Tue, 14 Nov 2017 13:14:47 +0000 | |
changeset 144 | 716042628398 |
parent 127 | testing/collatz_test2.scala@b4def82f3f9f |
child 199 | 54befaf23648 |
permissions | -rw-r--r-- |
125 | 1 |
|
2 |
||
127 | 3 |
assert(CW6a.collatz_max(10) == (20, 9)) |
125 | 4 |
|
127 | 5 |
assert(CW6a.collatz_max(100) == (119, 97)) |
125 | 6 |
|
127 | 7 |
assert(CW6a.collatz_max(1000) == (179, 871)) |
125 | 8 |
|
127 | 9 |
assert(CW6a.collatz_max(10000) == (262, 6171)) |
125 | 10 |
|
127 | 11 |
assert(CW6a.collatz_max(100000) == (351, 77031)) |
125 | 12 |
|
127 | 13 |
assert(CW6a.collatz_max(1000000) == (525, 837799)) |