testing1/collatz_test2.scala
changeset 281 87b9e3e2c1a7
parent 199 54befaf23648
equal deleted inserted replaced
280:a057dc4457fc 281:87b9e3e2c1a7
     1 
     1 import CW6a._
     2 
     2 
     3 assert(collatz_max(10) == (19, 9))
     3 assert(collatz_max(10) == (19, 9))
     4 
       
     5 assert(collatz_max(100) == (118, 97))
     4 assert(collatz_max(100) == (118, 97))
     6 
       
     7 assert(collatz_max(1000) == (178, 871))
     5 assert(collatz_max(1000) == (178, 871))
     8 
       
     9 assert(collatz_max(10000) == (261, 6171))
     6 assert(collatz_max(10000) == (261, 6171))
    10 
       
    11 assert(collatz_max(100000) == (350, 77031))
     7 assert(collatz_max(100000) == (350, 77031))
    12 
       
    13 assert(collatz_max(1000000) == (524, 837799))
     8 assert(collatz_max(1000000) == (524, 837799))