testing/collatz_test1.scala
changeset 127 b4def82f3f9f
parent 125 dcaab8068baa
equal deleted inserted replaced
126:c40f364d87eb 127:b4def82f3f9f
     1 
     1 
     2 assert(List(0,1,4).contains(collatz(1)))
     2 assert(List(0,1,4).contains(CW6a.collatz(1)))
     3 
     3 
     4 assert(collatz(6) == 9)
     4 assert(CW6a.collatz(6) == 9)
     5 
     5 
     6 assert(collatz(9) == 20)
     6 assert(CW6a.collatz(9) == 20)
     7 
     7 
     8 
     8