marking2/danube_test.sh
changeset 332 703c7e42bf46
parent 331 e3878cdd38bc
equal deleted inserted replaced
331:e3878cdd38bc 332:703c7e42bf46
    38 }
    38 }
    39 
    39 
    40 # purity test
    40 # purity test
    41 
    41 
    42 function scala_vars {
    42 function scala_vars {
    43    (egrep '\bvar\b|\breturn\b|\.par|ListBuffer|mutable|new Array' "$1" 2> /dev/null 1> /dev/null)
    43    (egrep '\bvar\b|\breturn\b|ListBuffer|new Array' "$1" 2> /dev/null 1> /dev/null)
    44 }
    44 }
       
    45 #function scala_vars {
       
    46 #   (egrep '\bvar\b|\breturn\b|\.par|ListBuffer|mutable|new Array' "$1" 2> /dev/null 1> /dev/null)
       
    47 #}
    45 
    48 
    46 
    49 
    47 # var, .par return, ListBuffer test
    50 # var, .par return, ListBuffer test
    48 #
    51 #
    49 echo -e  "danube.scala does not contain vars, returns,  Arrays, ListBuffers etc?" | tee -a $out
    52 echo -e  "danube.scala does not contain vars, returns,  Arrays, ListBuffers etc?" | tee -a $out