main_testing1/drumb_test.sh
changeset 459 d59404a41d5f
parent 420 4edc1a308652
--- a/main_testing1/drumb_test.sh	Mon Dec 26 16:49:53 2022 +0000
+++ b/main_testing1/drumb_test.sh	Sat Jan 14 14:13:16 2023 +0000
@@ -23,15 +23,13 @@
 }
 
 # purity test
-
 function scala_vars {
-   (egrep '\bvar\b|\breturn\b|\.par\.|\.par |ListBuffer|AtomicInteger|mutable|util.control|new Array' c$out 2> /dev/null 1> /dev/null)
+   (sed 's/immutable/ok/g' c$out > cb$out;
+    egrep '\bvar\b|\breturn\b|\.par\.|\.par |ListBuffer|AtomicInteger|mutable|util.control|new Array' cb$out 2> /dev/null 1> /dev/null)
 }
 
 
 
-
-
 # compilation test
 echo -e "drumb.scala runs?" >> $out