changeset 473 | ac79c2e534bd |
parent 401 | 9471c3b7ea02 |
472:6a77c260c8a5 | 473:ac79c2e534bd |
---|---|
1 |
1 |
2 import C2._ |
2 def urbanmain() = { |
3 import C2._ |
|
3 |
4 |
4 assert(occurrences(List("a", "b", "b", "c", "d")) == Map("a" -> 1, "b" -> 2, "c" -> 1, "d" -> 1)) |
5 assert(occurrences(List("a", "b", "b", "c", "d")) == Map("a" -> 1, "b" -> 2, "c" -> 1, "d" -> 1)) |
5 |
6 assert(occurrences(List("d", "b", "d", "b", "d")) == Map("d" -> 3, "b" -> 2)) |
6 assert(occurrences(List("d", "b", "d", "b", "d")) == Map("d" -> 3, "b" -> 2)) |
7 } |