marking1/drumb_test.sh
changeset 333 24bc76d97db2
parent 331 e3878cdd38bc
--- a/marking1/drumb_test.sh	Wed Feb 05 12:24:27 2020 +0000
+++ b/marking1/drumb_test.sh	Fri Apr 10 12:12:48 2020 +0100
@@ -39,12 +39,14 @@
 
 # purity test
 
+#function scala_vars {
+#   (egrep '\bvar\b|\breturn\b|\.par|ListBuffer|mutable|new Array' "$1" 2> /dev/null 1> /dev/null)
+#}
+
 function scala_vars {
-   (egrep '\bvar\b|\breturn\b|\.par|ListBuffer|mutable|new Array' "$1" 2> /dev/null 1> /dev/null)
+   (egrep '\bvar\b|\breturn\b|\.par|ListBuffer|new Array' "$1" 2> /dev/null 1> /dev/null)
 }
 
-
-
 # var, .par return, ListBuffer test
 #
 echo -e "drumb.scala does not contain vars, returns, Arrays, ListBuffers etc?" | tee -a $out