Advertisement
brandizzi

Checking for differences between lox output and expected out

Aug 2nd, 2018
721
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for l in examples/*.lox
  2. do
  3.   out=$(mktemp)
  4.   err=$(mktemp)
  5.   java -classpath target/classes/ br.com.brandizzi.adam.myjlox.Lox $l > $out 2> $err
  6.  
  7.   if ! diff $l.out $out
  8.   then
  9.     FAIL=1
  10.   fi
  11. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement