testing1/collatz_test1.scala
changeset 199 54befaf23648
parent 147 72f7dd1a3754
child 281 87b9e3e2c1a7
equal deleted inserted replaced
198:d59c7995bcb2 199:54befaf23648
     1 
     1 
     2 
     2 
     3 assert(List(0,1,4).contains(CW6a.collatz(1)))
     3 assert(collatz(1) == 0)
     4 
     4 
     5 assert(CW6a.collatz(6) == 9)
     5 assert(collatz(6) == 8)
     6 
     6 
     7 assert(CW6a.collatz(9) == 20)
     7 assert(collatz(9) == 19)
     8 
     8 
     9 
     9