testing/collatz_test2.scala
changeset 127 b4def82f3f9f
parent 125 dcaab8068baa
equal deleted inserted replaced
126:c40f364d87eb 127:b4def82f3f9f
     1 
     1 
     2 
     2 
     3 assert(collatz_max(10) == (9, 20))
     3 assert(CW6a.collatz_max(10) == (20, 9))
     4 
     4 
     5 assert(collatz_max(100) == (97, 119))
     5 assert(CW6a.collatz_max(100) == (119, 97))
     6 
     6 
     7 assert(collatz_max(1000) == (871, 179))
     7 assert(CW6a.collatz_max(1000) == (179, 871))
     8 
     8 
     9 assert(collatz_max(10000) == (6171, 262))
     9 assert(CW6a.collatz_max(10000) == (262, 6171))
    10 
    10 
    11 assert(collatz_max(100000) == (77031, 351))
    11 assert(CW6a.collatz_max(100000) == (351, 77031))
    12 
    12 
    13 assert(collatz_max(1000000) == (837799, 525))
    13 assert(CW6a.collatz_max(1000000) == (525, 837799))