equal
  deleted
  inserted
  replaced
  
    
    
|     25 } |     25 } | 
|     26  |     26  | 
|     27 # functional tests |     27 # functional tests | 
|     28  |     28  | 
|     29 function scala_assert { |     29 function scala_assert { | 
|     30   (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -nc -i "$1" "$2" -e "") #2> /dev/null 1> /dev/null) |     30   (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -nc -i "$1" "$2" -e "" 2> /dev/null 1> /dev/null) | 
|     31 } |     31 } | 
|     32  |     32  | 
|     33 # purity test |     33 # purity test | 
|     34  |     34  | 
|     35 function scala_vars { |     35 function scala_vars { | 
|     47   tsts0=$(( 1 )) |     47   tsts0=$(( 1 )) | 
|     48 else |     48 else | 
|     49   echo -e "  --> success" | tee -a $out   |     49   echo -e "  --> success" | tee -a $out   | 
|     50   tsts0=$(( 0 ))  |     50   tsts0=$(( 0 ))  | 
|     51 fi |     51 fi | 
|         |     52  | 
|     52  |     53  | 
|     53 ### compilation test |     54 ### compilation test | 
|     54  |     55  | 
|     55  |     56  | 
|     56 if  [ $tsts0 -eq 0 ] |     57 if  [ $tsts0 -eq 0 ] |