pre_testing2/docdiff_test3.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sun, 31 Jan 2021 03:28:20 +0000
changeset 393 7a9cc14d0912
parent 346 663c2a9108d1
permissions -rw-r--r--
marking 5


import CW7a._

val urban_list1 = List("a", "b", "b", "c", "d")
val urban_list2 = List("d", "b", "d", "b", "d")

assert(prod(urban_list1, urban_list2) == 7)

assert(prod(urban_list1, urban_list1) == 7)

assert(prod(urban_list2, urban_list2) == 13)