--- a/marking1/drumb_test4.scala Wed Jul 24 15:18:44 2019 +0100
+++ b/marking1/drumb_test4.scala Thu Aug 01 09:48:34 2019 +0100
@@ -1,6 +1,12 @@
-
+def myassert(cond : => Boolean) = {
+ try {
+ assert(cond)
+ } catch {
+ case _ : Throwable => System.exit(1)
+ }
+}
-assert(get_delta(None, None) == None)
-assert(get_delta(Some(50.0), None) == None)
-assert(get_delta(None, Some(100.0)) == None)
-assert(get_delta(Some(50.0), Some(100.0)) == Some(1.0))
+myassert(get_delta(None, None) == None)
+myassert(get_delta(Some(50.0), None) == None)
+myassert(get_delta(None, Some(100.0)) == None)
+myassert(get_delta(Some(50.0), Some(100.0)) == Some(1.0))