| author | Christian Urban <urbanc@in.tum.de> | 
| Wed, 24 Jul 2019 15:18:44 +0100 | |
| changeset 267 | 10a2ef26a92c | 
| parent 210 | 34f935e13bdd | 
| child 281 | 32dfd2ca577b | 
| permissions | -rw-r--r-- | 
| 267 
10a2ef26a92c
updated myassert workaround
 Christian Urban <urbanc@in.tum.de> parents: 
210diff
changeset | 1 | def myassert(cond : => Boolean) = {
 | 
| 
10a2ef26a92c
updated myassert workaround
 Christian Urban <urbanc@in.tum.de> parents: 
210diff
changeset | 2 |   try {
 | 
| 
10a2ef26a92c
updated myassert workaround
 Christian Urban <urbanc@in.tum.de> parents: 
210diff
changeset | 3 | assert(cond) | 
| 
10a2ef26a92c
updated myassert workaround
 Christian Urban <urbanc@in.tum.de> parents: 
210diff
changeset | 4 |   } catch { 
 | 
| 
10a2ef26a92c
updated myassert workaround
 Christian Urban <urbanc@in.tum.de> parents: 
210diff
changeset | 5 | case _ : Throwable => System.exit(1) | 
| 
10a2ef26a92c
updated myassert workaround
 Christian Urban <urbanc@in.tum.de> parents: 
210diff
changeset | 6 | } | 
| 
10a2ef26a92c
updated myassert workaround
 Christian Urban <urbanc@in.tum.de> parents: 
210diff
changeset | 7 | } | 
| 210 | 8 | |
| 267 
10a2ef26a92c
updated myassert workaround
 Christian Urban <urbanc@in.tum.de> parents: 
210diff
changeset | 9 | myassert(get_january_data("GOOG", 1980) == List())
 | 
| 169 | 10 | |
| 267 
10a2ef26a92c
updated myassert workaround
 Christian Urban <urbanc@in.tum.de> parents: 
210diff
changeset | 11 | myassert(get_january_data("GOOG", 2010).head == "2010-01-04,312.204773")
 | 
| 169 | 12 |