testing1/alcohol_test1.scala
author Christian Urban <urbanc@in.tum.de>
Thu, 06 Dec 2018 13:15:28 +0000
changeset 229 5549016ab10f
parent 144 716042628398
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
128
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
val url_alcohol_test = 
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
  "https://raw.githubusercontent.com/fivethirtyeight/data/master/alcohol-consumption/drinks.csv"
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
val file_population_test = 
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
  "population.csv"
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
assert(CW6b.get_csv_page(url_alcohol_test).size == 194)
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
assert(CW6b.get_csv_file(file_population_test).size == 216)
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12