core_marking2/docdiff_test3.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 23 Dec 2022 16:52:34 +0000
changeset 456 d076cb2e0b75
parent 424 daf561a83ba6
permissions -rw-r--r--
updated jars
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
227
b5f3e814a710 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
424
Christian Urban <christian.urban@kcl.ac.uk>
parents: 382
diff changeset
     2
import C2._
227
b5f3e814a710 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
b5f3e814a710 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
val urban_list1 = List("a", "b", "b", "c", "d")
b5f3e814a710 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
val urban_list2 = List("d", "b", "d", "b", "d")
b5f3e814a710 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
b5f3e814a710 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
assert(prod(urban_list1, urban_list2) == 7)
b5f3e814a710 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
assert(prod(urban_list1, urban_list1) == 7)
b5f3e814a710 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
assert(prod(urban_list2, urban_list2) == 13)
323
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 283
diff changeset
    10
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 283
diff changeset
    11
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 283
diff changeset
    12
val urban_listA = List("a", "b", "b", "c", "d")
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 283
diff changeset
    13
val urban_listB = List("1", "2", "3", "4", "5")
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 283
diff changeset
    14
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 283
diff changeset
    15
assert(prod(urban_listA, urban_listB) == 0)