main_marking3/re_test5.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 11 Mar 2023 23:09:51 +0000
changeset 465 8ce150207792
parent 463 0315d9983cd0
permissions -rw-r--r--
updated to scala 3

import M3._

assert(flts(List(CHAR('a'), ZERO, ONE), Nil) == List(ZERO))
assert(flts(List(CHAR('a'), ONE, ONE, CHAR('b')), Nil) == List(CHAR('a'), CHAR('b')))
assert(flts(List(ONE ~ CHAR('a'), CHAR('b') ~ ONE), Nil) == List(ONE, CHAR('a'), CHAR('b'), ONE))