main_testing3/re_test3.scala
changeset 403 ffce7b61b446
parent 347 4de31fdc0d67
child 433 6af86ba1208f
--- a/main_testing3/re_test3.scala	Mon Nov 08 01:16:13 2021 +0000
+++ b/main_testing3/re_test3.scala	Mon Nov 08 01:39:00 2021 +0000
@@ -1,4 +1,4 @@
-import CW8c._
+import M3._
 
 
 assert(simp(ZERO | ONE) == ONE)
@@ -16,6 +16,6 @@
 assert(simp((ZERO | ((ZERO | ZERO) | (ZERO | ZERO))) ~ ((ONE | ZERO) | ONE ) ~ (CHAR('a'))) == ZERO)
 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'), CHAR('a') | ONE))
+assert(simp(ALT(ONE | CHAR('a'), CHAR('a') | ONE)) == ALT(ONE, CHAR('a')))