testing1/drumb_test.sh
changeset 284 9a04eb6a2291
parent 281 87b9e3e2c1a7
child 304 4a9d1153ccc5
equal deleted inserted replaced
283:ef5f62bf5987 284:9a04eb6a2291
    92 
    92 
    93 if [ $tsts -eq 0 ]
    93 if [ $tsts -eq 0 ]
    94 then
    94 then
    95   echo "  get_prices(List(\"GOOG\", \"AAPL\"), 2010 to 2012) ==" >> $out
    95   echo "  get_prices(List(\"GOOG\", \"AAPL\"), 2010 to 2012) ==" >> $out
    96   echo "       List(List(Some(311.349976), Some(20.544939))," >> $out 
    96   echo "       List(List(Some(311.349976), Some(20.544939))," >> $out 
    97   echo "              List(Some(300.222351), Some(31.638695))," >> $out 
    97   echo "            List(Some(300.222351), Some(31.638695))," >> $out 
    98   echo "              List(Some(330.555054), Some(39.478039))))" >> $out
    98   echo "            List(Some(330.555054), Some(39.478039)))" >> $out
    99 
    99 
   100   if (scala_assert "drumb.scala" "drumb_test3.scala")
   100   if (scala_assert "drumb.scala" "drumb_test3.scala")
   101   then
   101   then
   102     echo "  --> success" >> $out
   102     echo "  --> success" >> $out
   103   else
   103   else
   131   echo -e "    List(List(Some(-0.03573991804411003), Some(0.539974575389325)), " >> $out
   131   echo -e "    List(List(Some(-0.03573991804411003), Some(0.539974575389325)), " >> $out
   132   echo -e "         List(Some(0.10103414222249969), Some(0.24777764141006836)))" >> $out
   132   echo -e "         List(Some(0.10103414222249969), Some(0.24777764141006836)))" >> $out
   133   echo -e "" >> $out
   133   echo -e "" >> $out
   134   echo -e "  get_deltas(get_prices(List(\"BIDU\"), 2004 to 2008)) == " >> $out
   134   echo -e "  get_deltas(get_prices(List(\"BIDU\"), 2004 to 2008)) == " >> $out
   135   echo -e "    List(List(None), List(None),                          " >> $out
   135   echo -e "    List(List(None), List(None),                          " >> $out
   136   echo -e "         List(Some(0.9277165354330709)), List(Some(2.119679764725104)))) " >> $out
   136   echo -e "         List(Some(0.9277165354330709)), List(Some(2.119679764725104))) " >> $out
   137   
   137   
   138   if (scala_assert "drumb.scala" "drumb_test5.scala") 
   138   if (scala_assert "drumb.scala" "drumb_test5.scala") 
   139   then
   139   then
   140      echo "  --> success" >> $out
   140      echo "  --> success" >> $out
   141   else
   141   else