core_testing2/docdiff_test1.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 26 Apr 2024 17:35:36 +0100
changeset 486 9c03b5e89a2a
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
}