core_testing2/docdiff_test2.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 02 Nov 2023 11:32:10 +0000
changeset 472 6a77c260c8a5
parent 401 9471c3b7ea02
child 473 ac79c2e534bd
permissions -rw-r--r--
updated


import C2._

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))