testing1/alcohol_test3.scala
author Christian Urban <urbanc@in.tum.de>
Sat, 16 Jun 2018 15:13:48 +0100
changeset 183 f3767098552b
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
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
assert(CW6b.sorted_country_consumption().size == 177)
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
assert(CW6b.sorted_country_consumption()(9) == ("United Kingdom", 671976864))
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
166bb9b6b20a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
assert(CW6b.percentage(164) == (28771558364L, 28771558364L, 100.0))