main_testing5/bf_test.sh
changeset 426 b51467741af2
parent 419 d8dbf91c149b
child 475 59e005dcf163
equal deleted inserted replaced
425:957808dcb367 426:b51467741af2
    24 }
    24 }
    25 
    25 
    26 # purity test
    26 # purity test
    27 
    27 
    28 function scala_vars {
    28 function scala_vars {
    29    (egrep '\bvar\b|\breturn\b|\.par\.|\.par |ListBuffer|AtomicInteger|mutable|util.control|new Array' c$out 2> /dev/null 1> /dev/null)
    29     (sed 's/immutable/ok/g' c$out > cb$out;
       
    30      egrep '\bvar\b|\breturn\b|\.par\.|\.par |ListBuffer|AtomicInteger|mutable|util.control|new Array' cb$out 2> /dev/null 1> /dev/null)
    30 }
    31 }
    31 
    32 
    32 
    33 
    33 
    34 
    34 # compilation test
    35 # compilation test