marking1/collatz_test2.scala
changeset 212 4bda49ec24da
parent 210 63a1376cbebd
child 267 9e0216756771
equal deleted inserted replaced
211:092e0879a5ae 212:4bda49ec24da
    10 
    10 
    11 assert(collatz_max(100000) == (350, 77031))
    11 assert(collatz_max(100000) == (350, 77031))
    12 
    12 
    13 assert(collatz_max(1000000) == (524, 837799))
    13 assert(collatz_max(1000000) == (524, 837799))
    14 
    14 
    15 assert(collatz_max(2) == (1, 2) || collatz_max(2) == (0, 1))
    15 //assert(collatz_max(2) == (1, 2) || collatz_max(2) == (0, 1))
    16 
    16 assert(collatz_max(2) == (1, 2))
    17 assert(collatz_max(77000) == (339, 52527))
    17 assert(collatz_max(77000) == (339, 52527))