Minor, don't use experimental coroutines in kotlinp test
This commit is contained in:
committed by
Alexander Udalov
parent
4dc304b24e
commit
246346367c
+3
-4
@@ -12,7 +12,6 @@ import org.junit.Test
|
|||||||
import org.junit.runner.RunWith
|
import org.junit.runner.RunWith
|
||||||
import org.junit.runners.Parameterized
|
import org.junit.runners.Parameterized
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import kotlin.coroutines.experimental.buildSequence
|
|
||||||
|
|
||||||
@RunWith(Parameterized::class)
|
@RunWith(Parameterized::class)
|
||||||
class KotlinpCompilerTestDataTest(private val file: File) {
|
class KotlinpCompilerTestDataTest(private val file: File) {
|
||||||
@@ -41,15 +40,15 @@ class KotlinpCompilerTestDataTest(private val file: File) {
|
|||||||
"compiler/testData/serialization/builtinsSerializer"
|
"compiler/testData/serialization/builtinsSerializer"
|
||||||
)
|
)
|
||||||
|
|
||||||
return buildSequence<Array<*>> {
|
return mutableListOf<Array<*>>().apply {
|
||||||
for (baseDir in baseDirs) {
|
for (baseDir in baseDirs) {
|
||||||
for (file in File(baseDir).walkTopDown()) {
|
for (file in File(baseDir).walkTopDown()) {
|
||||||
if (file.extension == "kt") {
|
if (file.extension == "kt") {
|
||||||
yield(arrayOf(file))
|
add(arrayOf(file))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.toList()
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user