testing1/drumb_test.sh
changeset 320 cdfb2ce30a3d
parent 314 21b52310bd8b
equal deleted inserted replaced
319:b84ea52bfd8f 320:cdfb2ce30a3d
   147 ### yield_tests
   147 ### yield_tests
   148 
   148 
   149 if [ $tsts -eq 0 ]
   149 if [ $tsts -eq 0 ]
   150 then
   150 then
   151   echo -e "  val ds = get_deltas(get_prices(List(\"GOOG\", \"AAPL\"), 2010 to 2012))" >> $out
   151   echo -e "  val ds = get_deltas(get_prices(List(\"GOOG\", \"AAPL\"), 2010 to 2012))" >> $out
   152   echo -e "  yearly_yield(get_deltas(ds, 100, 0)) == 125" >> $out
   152   echo -e "  yearly_yield(ds, 100, 0) == 125" >> $out
   153   echo -e "  yearly_yield(get_deltas(ds, 100, 1)) == 117" >> $out
   153   echo -e "  yearly_yield(ds, 100, 1) == 117" >> $out
   154   
   154   
   155   if (scala_assert "drumb.scala" "drumb_test6.scala") 
   155   if (scala_assert "drumb.scala" "drumb_test6.scala") 
   156   then
   156   then
   157       echo -e "  --> success" >> $out
   157       echo -e "  --> success" >> $out
   158   else
   158   else