author | Christian Urban <christian.urban@kcl.ac.uk> |
Thu, 06 Jun 2024 22:18:15 +0100 | |
changeset 490 | 4778fefecd0c |
parent 463 | 0315d9983cd0 |
permissions | -rw-r--r-- |
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))