author | Christian Urban <urbanc@in.tum.de> |
Sun, 03 Nov 2019 14:42:17 +0000 | |
changeset 308 | e86add5a6961 |
parent 281 | 87b9e3e2c1a7 |
permissions | -rw-r--r-- |
281 | 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 | 8 |
*/ |
169 | 9 |
|
281 | 10 |
assert(CW6b.get_january_data("GOOG", 1980) == List()) |
11 |
assert(CW6b.get_january_data("GOOG", 2010).head == "2010-01-04,312.204773") |
|
169 | 12 |