testing/alcohol_test1.scala
author Christian Urban <urbanc@in.tum.de>
Wed, 08 Nov 2017 13:57:13 +0000
changeset 130 7f3f01dfe738
parent 128 166bb9b6b20a
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