main_testing1/drumb_test2.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 14 Jan 2023 14:13:16 +0000
changeset 459 d59404a41d5f
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))