testing/drumb_test.sh
changeset 135 077e63e96287
parent 132 2ca6db82d207
child 138 7415ff9c91f4
equal deleted inserted replaced
134:d58954a96ec1 135:077e63e96287
    97 ### yield_tests, investment_test
    97 ### yield_tests, investment_test
    98 
    98 
    99 if [ $tsts -eq 0 ]
    99 if [ $tsts -eq 0 ]
   100 then
   100 then
   101   echo "  yearly_yield(get_deltas(<<GOOG+AAPL 2010 - 2012>>), 100, 0) == 125" >> $out
   101   echo "  yearly_yield(get_deltas(<<GOOG+AAPL 2010 - 2012>>), 100, 0) == 125" >> $out
       
   102   echo "" >> $out
       
   103   echo "  investment(rstate_portfolio, 1978 to 2017, 100) == 30839" >> $out
       
   104   echo "  investment(bchips_portfolio, 1978 to 2017, 100) == 349597" >> $out
   102   
   105   
   103   if (scala_assert "drumb.scala" "drumb_test3.scala") 
   106   if (scala_assert "drumb.scala" "drumb_test3.scala") 
   104   then
   107   then
   105     echo "  --> success" >> $out
   108     echo "  --> success" >> $out
   106   else
   109   else