testing4/re_test.sh
changeset 329 8a34b2ebc8cc
parent 315 7ea440e1ffbb
--- a/testing4/re_test.sh	Tue Dec 03 11:07:09 2019 +0000
+++ b/testing4/re_test.sh	Mon Jan 27 10:18:13 2020 +0000
@@ -107,9 +107,12 @@
   echo -e " simp(ZERO | ONE) == ONE" >> $out
   echo -e " simp(STAR(ZERO | ONE)) == STAR(ZERO | ONE)" >> $out
   echo -e " simp(ONE ~ (ONE ~ (ONE ~ CHAR('a')))) == CHAR('a')" >> $out
+  echo -e " simp(((ONE ~ ONE) ~ ONE) ~ CHAR('a')) == CHAR('a'))" >> $out
+  echo -e " simp(((ONE | ONE) ~ ONE) ~ CHAR('a')) == CHAR('a'))" >> $out
   echo -e " simp(ONE ~ (ONE ~ (ONE ~ ZERO))) == ZERO" >> $out
   echo -e " simp(ALT(ONE ~ (ONE ~ (ONE ~ ZERO)), CHAR('a'))) == CHAR('a')" >> $out
   echo -e " simp(CHAR('a') | CHAR('a')) == CHAR('a')" >> $out
+  echo -e " simp(CHAR('a') ~ CHAR('a')) == CHAR('a') ~ CHAR('a')" >> $out
   echo -e " simp(ONE | CHAR('a')) == (ONE | CHAR('a'))" >> $out
   echo -e " simp(ALT((CHAR('a') | ZERO) ~ ONE," >> $out
   echo -e "          ((ONE | CHAR('b')) | CHAR('c')) ~ (CHAR('d') ~ ZERO))) == CHAR('a')" >> $out