marking1/drumb_test2.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 08 Dec 2022 17:53:08 +0000
changeset 452 4772b6166720
parent 281 87b9e3e2c1a7
permissions -rw-r--r--
updated

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

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