pre_testing2/docdiff_test2.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 06 Nov 2021 00:06:39 +0000
changeset 399 b17a98b0c52f
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))