brandizzi icon

Checking for differences between lox output and expected out

brandizzi | PRO | 08/02/18 11:06:02 AM UTC | 0 ⭐ | 1346 👁️ | Never ⏰ | []
Bash |

200 B

|

None

|

0 👍

/

0 👎

for l in examples/*.lox
do
  out=$(mktemp)
  err=$(mktemp)
  java -classpath target/classes/ br.com.brandizzi.adam.myjlox.Lox $l > $out 2> $err
 
  if ! diff $l.out $out
  then
    FAIL=1
  fi
done

Comments