main_marking3/re_test6.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Tue, 07 Dec 2021 23:17:51 +0000 (2021-12-07)
changeset 418 fa7f7144f2bb
parent 390 175a950470a9
child 424 daf561a83ba6
permissions -rw-r--r--
updated
import CW8c._

assert(simp(Iterator.iterate(ONE:Rexp)(r => SEQ(r, ONE | ONE)).drop(50).next) == ONE)
assert(simp(Iterator.iterate(ONE:Rexp)(r => ALT(r, r)).drop(20).next) == ONE)