Deprecate sumBy and sumByDouble with WARNING

This commit is contained in:
Abduqodiri Qurbonzoda
2021-04-08 03:44:52 +03:00
parent 983985bc68
commit 33b44585c4
16 changed files with 203 additions and 4 deletions
@@ -417,6 +417,7 @@ abstract class IterableTests<T : Iterable<String>>(val createFrom: (Array<out St
expect(0) { empty.count { it.startsWith("x") } }
}
@Suppress("DEPRECATION")
@Test
fun sumBy() {
expect(6) { data.sumBy { it.length } }