Hold back eachSumOf for a while.

This commit is contained in:
Ilya Gorbunov
2017-01-11 16:48:28 +03:00
parent 0dfcbdf072
commit 4816474d70
3 changed files with 7 additions and 3 deletions
@@ -98,7 +98,7 @@ class GroupingTest {
assertEquals(mapOf('f' to 2, 'b' to 3, 'a' to 1, 'z' to 2), counts2)
}
/**
@Test fun sumEach() {
val values = listOf("k" to 50, "b" to 20, "k" to 1000 )
val summary = values.groupingBy { it.first }.eachSumOf { it.second }
@@ -110,4 +110,5 @@ class GroupingTest {
assertEquals(mapOf("k" to 1053, "b" to 31, "a" to 5), summary2)
}
*/
}