Scan functions for Sequences and Iterable #KT-7657
This commit is contained in:
@@ -147,6 +147,10 @@ compileTestKotlin {
|
||||
}
|
||||
}
|
||||
|
||||
compileLongRunningTestKotlin {
|
||||
kotlinOptions.freeCompilerArgs += "-Xuse-experimental=kotlin.ExperimentalStdlibApi"
|
||||
}
|
||||
|
||||
task longRunningTest(type: Test, dependsOn: longRunningTestClasses) {
|
||||
group = "verification"
|
||||
testClassesDirs = sourceSets.longRunningTest.output.classesDirs
|
||||
|
||||
@@ -139,6 +139,17 @@ class IndexOverflowJVMTest {
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
fun scanIndexedOverflow() {
|
||||
assertIndexOverflow { maxIndexSequence.scanIndexed("") { index, _, s -> checkIndexPositive(index); s }.forEach { } }
|
||||
}
|
||||
|
||||
@Test
|
||||
fun scanReduceIndexedOverflow() {
|
||||
assertIndexOverflow { maxIndexSequence.scanReduceIndexed { index, _, s -> checkIndexPositive(index); s }.forEach { } }
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
fun dropTwiceMaxValue() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user