main_testing3/re_test5.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Tue, 08 Nov 2022 00:27:47 +0000
changeset 433 6af86ba1208f
parent 403 main_testing3/re_test4.scala@ffce7b61b446
child 475 59e005dcf163
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
403
ffce7b61b446 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 347
diff changeset
     1
import M3._
153
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
433
6af86ba1208f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 403
diff changeset
     3
assert(flts(List(CHAR('a'), ZERO, ONE), Nil) == List(ZERO))
6af86ba1208f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 403
diff changeset
     4
assert(flts(List(CHAR('a'), ONE, ONE, CHAR('b')), Nil) == List(CHAR('a'), CHAR('b')))
6af86ba1208f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 403
diff changeset
     5
assert(flts(List(ONE ~ CHAR('a'), CHAR('b') ~ ONE), Nil) == List(ONE, CHAR('a'), CHAR('b'), ONE))
153
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6