testing5/bf_test.sh
changeset 243 80102fba0a93
parent 236 fac3ebafbac1
child 261 abb03b298dcb
equal deleted inserted replaced
242:3308eeb73d11 243:80102fba0a93
    92 
    92 
    93 
    93 
    94 
    94 
    95 if [ $tsts1 -eq 0 ]
    95 if [ $tsts1 -eq 0 ]
    96 then
    96 then
    97     echo -e " jumpRight(\"[******]***\", 1, 0) == 8" >> $out
    97     echo -e " jumpRight(\"[xxxxxx]xxx\", 1, 0) == 8" >> $out
    98     echo -e " jumpRight(\"[**[*]*]***\", 1, 0) == 8" >> $out
    98     echo -e " jumpRight(\"[xx[x]x]xxx\", 1, 0) == 8" >> $out
    99     echo -e " jumpRight(\"[**[*]*]***\", 1, 0) == 8" >> $out
    99     echo -e " jumpRight(\"[xx[x]x]xxx\", 1, 0) == 8" >> $out
   100     echo -e " jumpRight(\"[**[***]***\", 1, 0) == 11" >> $out
   100     echo -e " jumpRight(\"[xx[xxx]xxx\", 1, 0) == 11" >> $out
   101     echo -e " jumpRight(\"[*[][]*]***\", 1, 0) == 8" >> $out
   101     echo -e " jumpRight(\"[x[][]x]xxx\", 1, 0) == 8" >> $out
   102     echo -e " jumpLeft(\"[******]***\", 6, 0) == 1" >> $out
   102     echo -e " jumpLeft(\"[xxxxxx]xxx\", 6, 0) == 1" >> $out
   103     echo -e " jumpLeft(\"[******]***\", 7, 0) == -1" >> $out
   103     echo -e " jumpLeft(\"[xxxxxx]xxx\", 7, 0) == -1" >> $out
   104     echo -e " jumpLeft(\"[*[][]*]***\", 6, 0) == 1" >> $out
   104     echo -e " jumpLeft(\"[x[][]x]xxx\", 6, 0) == 1" >> $out
   105   
   105   
   106   if (scala_assert "bf.scala" "bf_test3.scala")
   106   if (scala_assert "bf.scala" "bf_test3.scala")
   107   then
   107   then
   108     echo -e "  --> success" >> $out
   108     echo -e "  --> success" >> $out
   109   else
   109   else