marking2/docdiff_test.sh
changeset 323 1f8005b4cdf6
parent 283 ef5f62bf5987
--- a/marking2/docdiff_test.sh	Tue Nov 19 06:38:20 2019 +0000
+++ b/marking2/docdiff_test.sh	Fri Nov 22 16:41:45 2019 +0000
@@ -98,6 +98,10 @@
   echo -e "  " |  tee -a $out
   echo -e "  occurrences(List(\"d\", \"b\", \"d\", \"b\", \"d\")) == " |  tee -a $out
   echo -e "      Map(\"d\" -> 3, \"b\" -> 2)" |  tee -a $out
+  echo -e "  " |  tee -a $out
+  echo -e "  occurrences(Nil) == Map() " |  tee -a $out
+  echo -e "  " |  tee -a $out
+  echo -e "  occurrences(List(\"b\", \"b\", \"b\", \"b\", \"b\")) == Map(\"b\" -> 5)" |  tee -a $out
 
   if (scala_assert "docdiff.scala" "docdiff_test2.scala") 
   then
@@ -118,6 +122,9 @@
   echo -e "  prod(l1, l2) == 7 " |  tee -a $out
   echo -e "  prod(l1, l1) == 7 " |  tee -a $out
   echo -e "  prod(l2, l2) == 13 " |  tee -a $out
+  echo -e "  " |  tee -a $out
+  echo -e "  val l3 = List(\"1\", \"2\", \"3\", \"4\", \"5\")" |  tee -a $out
+  echo -e "  prod(l1, l3) == 0 " |  tee -a $out
 
   if (scala_assert "docdiff.scala" "docdiff_test3.scala") 
   then