marking/collatz_test1.scala
changeset 281 87b9e3e2c1a7
parent 280 a057dc4457fc
child 282 ec9773fe1dc0
equal deleted inserted replaced
280:a057dc4457fc 281:87b9e3e2c1a7
     1 
       
     2 assert(List(0,1).contains(collatz(1)))
       
     3 
       
     4 assert(collatz(2)==2)
       
     5 
       
     6 assert(collatz(9)==20)
       
     7 
       
     8 assert(collatz(9000)==48)
       
     9