core_testing2/docdiff_test1.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 13 Jun 2024 13:13:33 +0100
changeset 491 e2ffe8642f55
parent 473 ac79c2e534bd
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
211
092e0879a5ae updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
473
ac79c2e534bd updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 401
diff changeset
     2
def urbanmain() = {
ac79c2e534bd updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 401
diff changeset
     3
  import C2._
211
092e0879a5ae updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
473
ac79c2e534bd updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 401
diff changeset
     5
  assert(clean("ab a abc") == List("ab", "a", "abc"))
ac79c2e534bd updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 401
diff changeset
     6
  assert(clean("ab*a abc1") == List("ab", "a", "abc1"))
ac79c2e534bd updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 401
diff changeset
     7
}