main_marking1/drumb_test4.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 06 Jun 2024 22:18:15 +0100
changeset 490 4778fefecd0c
parent 424 daf561a83ba6
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
388
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     1
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     2
424
Christian Urban <christian.urban@kcl.ac.uk>
parents: 388
diff changeset
     3
assert(M1.get_delta(None, None) == None)
Christian Urban <christian.urban@kcl.ac.uk>
parents: 388
diff changeset
     4
assert(M1.get_delta(Some(50.0), None) == None)
Christian Urban <christian.urban@kcl.ac.uk>
parents: 388
diff changeset
     5
assert(M1.get_delta(None, Some(100.0)) == None)
Christian Urban <christian.urban@kcl.ac.uk>
parents: 388
diff changeset
     6
assert(M1.get_delta(Some(50.0), Some(100.0)) == Some(1.0))