marking1/drumb_test4.scala
author Christian Urban <urbanc@in.tum.de>
Sat, 02 Feb 2019 01:21:43 +0000
changeset 260 b4812c877b05
child 261 8997430d9765
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
260
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
assert(get_delta(None, None) == None)
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
assert(get_delta(Some(100.0), None) == None)
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
assert(get_delta(None, Some(50.0)) == None)
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
assert(get_delta(Some(100.0), Some(50.0)) == Some(1.0))