pre_testing2/docdiff_test2.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Wed, 25 Nov 2020 17:28:48 +0000
changeset 369 569aea2d052b
parent 346 663c2a9108d1
permissions -rw-r--r--
updated


import CW7a._

assert(occurrences(List("a", "b", "b", "c", "d")) == Map("a" -> 1, "b" -> 2, "c" -> 1, "d" -> 1))

assert(occurrences(List("d", "b", "d", "b", "d")) == Map("d" -> 3, "b" -> 2))