main_testing1/drumb_test2.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 02 Dec 2022 07:48:03 +0000
changeset 449 d67c5f7177a6
parent 402 de59aa20a1dc
permissions -rw-r--r--
updated

/*def myassert(cond : => Boolean) = {
  try {
    assert(cond)
  } catch { 
    case _ : Throwable => System.exit(1)
  }
}
*/

assert(M1.get_first_price("GOOG", 1980) == None)
assert(M1.get_first_price("GOOG", 2010) == Some(312.204773))