changeset 388 | ed63dca8068a |
child 424 | daf561a83ba6 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main_marking1/drumb_test2.scala Fri Jan 22 10:37:55 2021 +0000 @@ -0,0 +1,12 @@ +/*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)) +