core_testing1/collatz_test2.scala
changeset 472 6a77c260c8a5
parent 399 b17a98b0c52f
equal deleted inserted replaced
471:135bf034ac30 472:6a77c260c8a5
     1 import C1._
       
     2 
     1 
     3 assert(collatz_max(10) == (19, 9))
     2 def urbanmain() = {
     4 assert(collatz_max(100) == (118, 97))
     3 
     5 assert(collatz_max(1000) == (178, 871))
     4   import C1._
     6 assert(collatz_max(10000) == (261, 6171))
     5 
     7 assert(collatz_max(100000) == (350, 77031))
     6   assert(collatz_max(10) == (19, 9))
     8 assert(collatz_max(1000000) == (524, 837799))
     7   assert(collatz_max(100) == (118, 97))
       
     8   assert(collatz_max(1000) == (178, 871))
       
     9   assert(collatz_max(10000) == (261, 6171))
       
    10   assert(collatz_max(100000) == (350, 77031))
       
    11   assert(collatz_max(1000000) == (524, 837799))
       
    12 }