marking1/alcohol_test3.scala
author Christian Urban <urbanc@in.tum.de>
Tue, 13 Aug 2019 10:23:20 +0100
changeset 275 eb1b4ad23941
parent 158 94b11ac19b41
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
158
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
assert(CW6b.sorted_country_consumption().size == 177)
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
assert(CW6b.sorted_country_consumption()(9) == ("United Kingdom", 671976864))
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
assert(CW6b.percentage(164) == (28771558364L, 28771558364L, 100.0))