changeset 433 | 6af86ba1208f |
parent 403 | ffce7b61b446 |
child 475 | 59e005dcf163 |
--- a/main_testing3/re_test3.scala Thu Nov 03 11:30:09 2022 +0000 +++ b/main_testing3/re_test3.scala Tue Nov 08 00:27:47 2022 +0000 @@ -17,5 +17,6 @@ assert(simp(ALT(ONE | ONE, ONE | ONE)) == ONE) assert(simp(ALT(ZERO | CHAR('a'), CHAR('a') | ZERO)) == CHAR('a')) assert(simp(ALT(ONE | CHAR('a'), CHAR('a') | ONE)) == ALT(ONE, CHAR('a'))) +assert(simp(ALTs(Nil)) == ZERO) +assert(simp(SEQs(List(CHAR('a')))) == CHAR('a')) -