testing1/drumb_test2.sh
changeset 250 1b08b8ac13fd
parent 249 1997cfcd6334
child 266 ca48ac1d3c3e
equal deleted inserted replaced
249:1997cfcd6334 250:1b08b8ac13fd
    82 ### yield_tests
    82 ### yield_tests
    83 
    83 
    84 if [ $tsts -eq 0 ]
    84 if [ $tsts -eq 0 ]
    85 then
    85 then
    86   echo -e "  val ds = get_deltas(get_prices(List(\"GOOG\", \"AAPL\"), 2010 to 2012))" >> $out
    86   echo -e "  val ds = get_deltas(get_prices(List(\"GOOG\", \"AAPL\"), 2010 to 2012))" >> $out
    87   echo -e "  yearly_yield(get_deltas(de, 100, 0) == 125" >> $out
    87   echo -e "  yearly_yield(get_deltas(ds, 100, 0) == 125" >> $out
    88   echo -e "  yearly_yield(get_deltas(de, 100, 1) == 117" >> $out
    88   echo -e "  yearly_yield(get_deltas(ds, 100, 1) == 117" >> $out
    89   
    89   
    90   if (scala_assert "drumb.scala" "drumb_test6.scala") 
    90   if (scala_assert "drumb.scala" "drumb_test6.scala") 
    91   then
    91   then
    92       echo -e "  --> success" >> $out
    92       echo -e "  --> success" >> $out
    93   else
    93   else