main_marking3/re_test3a.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 06 Nov 2023 21:49:55 +0000
changeset 480 a623dd1f2898
parent 463 0315d9983cd0
permissions -rw-r--r--
updated jars

import M3._


assert(flts(Nil) == Nil)
assert(flts(ZERO::ZERO::Nil) == List(ZERO))
assert(flts(ZERO::ONE::ZERO::ONE::Nil) == List(ZERO))
assert(flts(ONE::ALTs(List(ONE))::ONE::Nil) == List(ALTs(List(ONE))))
assert(flts(ONE::ALTs(List(ONE))::ONE::ALTs(List(ONE))::Nil) == List(ALTs(List(ONE)), ALTs(List(ONE))))
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))