updated
authorChristian Urban <urbanc@in.tum.de>
Sat, 09 Nov 2019 22:04:53 +0000
changeset 315 7ea440e1ffbb
parent 314 21b52310bd8b
child 316 8b57dd326a91
updated
cws/cw01.pdf
cws/cw01.tex
testing4/re_test.sh
Binary file cws/cw01.pdf has changed
--- a/cws/cw01.tex	Wed Nov 06 00:36:45 2019 +0000
+++ b/cws/cw01.tex	Sat Nov 09 22:04:53 2019 +0000
@@ -246,7 +246,7 @@
 
 \begin{verbatim}
   List(List(Some(312.204773), Some(26.782711)), 
-       List(Some(301.0466), Some(41.244694)), 
+       List(Some(301.0466),   Some(41.244694)), 
        List(Some(331.462585), Some(51.464207))))
 \end{verbatim}\hfill[1 Mark]
 
--- a/testing4/re_test.sh	Wed Nov 06 00:36:45 2019 +0000
+++ b/testing4/re_test.sh	Sat Nov 09 22:04:53 2019 +0000
@@ -113,6 +113,10 @@
   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
+  echo -e " simp((ZERO | ((ZERO | ZERO) | (ZERO | ZERO))) ~ ((ONE | ZERO) | ONE ) ~ (CHAR('a'))) == ZERO" >> $out
+  echo -e " simp(ALT(ONE | ONE, ONE | ONE)) == ONE" >> $out
+  echo -e " simp(ALT(ZERO | CHAR('a'), CHAR('a') | ZERO)) == CHAR('a')" >> $out
+  echo -e " simp(ALT(ONE | CHAR('a'), CHAR('a') | ONE)) == ALT(ONE | CHAR('a'), CHAR('a') | ONE)" >> $out
   if (scala_assert "re.scala" "re_test3.scala")
   then
     echo -e "  --> success" >> $out