core_marking2/docdiff_test2.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Wed, 09 Nov 2022 20:51:29 +0000
changeset 440 f3bfc496d6ca
parent 424 daf561a83ba6
permissions -rw-r--r--
updated jars


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

assert(occurrences(List("b", "b", "b", "b", "b")) == Map("b" -> 5))

assert(occurrences(Nil) == Map())