marking1/drumb_test1.scala
author Christian Urban <urbanc@in.tum.de>
Mon, 04 Nov 2019 11:48:37 +0000
changeset 310 335079d938aa
parent 281 87b9e3e2c1a7
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
281
87b9e3e2c1a7 updated
Christian Urban <urbanc@in.tum.de>
parents: 267
diff changeset
     1
/*def myassert(cond : => Boolean) = {
267
9e0216756771 updated myassert workaround
Christian Urban <urbanc@in.tum.de>
parents: 210
diff changeset
     2
  try {
9e0216756771 updated myassert workaround
Christian Urban <urbanc@in.tum.de>
parents: 210
diff changeset
     3
    assert(cond)
9e0216756771 updated myassert workaround
Christian Urban <urbanc@in.tum.de>
parents: 210
diff changeset
     4
  } catch { 
9e0216756771 updated myassert workaround
Christian Urban <urbanc@in.tum.de>
parents: 210
diff changeset
     5
    case _ : Throwable => System.exit(1)
9e0216756771 updated myassert workaround
Christian Urban <urbanc@in.tum.de>
parents: 210
diff changeset
     6
  }
9e0216756771 updated myassert workaround
Christian Urban <urbanc@in.tum.de>
parents: 210
diff changeset
     7
}
281
87b9e3e2c1a7 updated
Christian Urban <urbanc@in.tum.de>
parents: 267
diff changeset
     8
*/
169
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
     9
281
87b9e3e2c1a7 updated
Christian Urban <urbanc@in.tum.de>
parents: 267
diff changeset
    10
assert(CW6b.get_january_data("GOOG", 1980) == List())
87b9e3e2c1a7 updated
Christian Urban <urbanc@in.tum.de>
parents: 267
diff changeset
    11
assert(CW6b.get_january_data("GOOG", 2010).head == "2010-01-04,312.204773")
169
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    12