equal
deleted
inserted
replaced
15 } |
15 } |
16 |
16 |
17 # functional tests |
17 # functional tests |
18 |
18 |
19 function scala_assert { |
19 function scala_assert { |
20 (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -i "$1" "$2" -e "") #2> /dev/null 1> /dev/null) |
20 (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -i "$1" "$2" -e "" 2> /dev/null 1> /dev/null) |
21 } |
21 } |
22 |
22 |
23 # purity test |
23 # purity test |
24 |
24 |
25 function scala_vars { |
25 function scala_vars { |
26 (egrep '\bvar\b|\breturn\b|\.par|ListBuffer|mutable' "$1" 2> /dev/null 1> /dev/null) |
26 (egrep '\bvar\b|\breturn\b|\.par|ListBuffer|mutable|new Array' "$1" 2> /dev/null 1> /dev/null) |
27 } |
27 } |
28 |
28 |
29 |
29 |
30 # var, .par return, ListBuffer test |
30 # var, .par return, ListBuffer test |
31 # |
31 # |