main_marking1/drumb_test2.scala
changeset 388 ed63dca8068a
child 424 daf561a83ba6
equal deleted inserted replaced
387:6282b88511d8 388:ed63dca8068a
       
     1 /*def myassert(cond : => Boolean) = {
       
     2   try {
       
     3     assert(cond)
       
     4   } catch { 
       
     5     case _ : Throwable => System.exit(1)
       
     6   }
       
     7 }
       
     8 */
       
     9 
       
    10 assert(CW6b.get_first_price("GOOG", 1980) == None)
       
    11 assert(CW6b.get_first_price("GOOG", 2010) == Some(312.204773))
       
    12