testing1/collatz_test.sh
changeset 329 8a34b2ebc8cc
parent 302 067afe8af35b
child 343 c8fcc0e0a57f
equal deleted inserted replaced
328:0e591f806290 329:8a34b2ebc8cc
    25 }
    25 }
    26 
    26 
    27 # purity test
    27 # purity test
    28 
    28 
    29 function scala_vars {
    29 function scala_vars {
    30    (egrep '\bvar\b|\breturn\b|\.par|ListBuffer|mutable|new Array' "$1" 2> /dev/null 1> /dev/null)
    30    (egrep '\bvar\b|\breturn\b|\.par|ListBuffer|collection.mutable|util.control|new Array' "$1" 2> /dev/null 1> /dev/null)
    31 }
    31 }
    32 
    32 
    33 
    33 
    34 # var, .par return, ListBuffer test
    34 # var, .par return, ListBuffer test
    35 #
    35 #