pre_testing2/docdiff_test2.scala
changeset 346 663c2a9108d1
parent 283 ef5f62bf5987
equal deleted inserted replaced
345:40657f9a4e4a 346:663c2a9108d1
       
     1 
       
     2 import CW7a._
       
     3 
       
     4 assert(occurrences(List("a", "b", "b", "c", "d")) == Map("a" -> 1, "b" -> 2, "c" -> 1, "d" -> 1))
       
     5 
       
     6 assert(occurrences(List("d", "b", "d", "b", "d")) == Map("d" -> 3, "b" -> 2))