main_testing3/re_test4.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 25 Nov 2022 00:03:15 +0000
changeset 448 db2a3e3287a9
parent 433 6af86ba1208f
child 475 59e005dcf163
permissions -rw-r--r--
updated

import M3._

assert(denest(List(ONE, ZERO, ALTs(List(ONE, CHAR('a'))))) 
   == List(ONE, ONE, CHAR('a')))
assert(denest(List(ONE ~ ONE, ZERO, ZERO | ONE)) == List(ONE ~ ONE, ZERO, ONE))