jvmTest.examples.test.FlowDelayTest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlinx-coroutines-core
Show all versions of kotlinx-coroutines-core
Coroutines support libraries for Kotlin
/*
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
// This file was automatically generated from Delay.kt by Knit tool. Do not edit.
package kotlinx.coroutines.examples.test
import kotlinx.coroutines.knit.*
import org.junit.Test
class FlowDelayTest {
@Test
fun testExampleDelay01() {
test("ExampleDelay01") { kotlinx.coroutines.examples.exampleDelay01.main() }.verifyLines(
"3, 4, 5"
)
}
@Test
fun testExampleDelay02() {
test("ExampleDelay02") { kotlinx.coroutines.examples.exampleDelay02.main() }.verifyLines(
"1, 3, 4, 5"
)
}
@Test
fun testExampleDelayDuration01() {
test("ExampleDelayDuration01") { kotlinx.coroutines.examples.exampleDelayDuration01.main() }.verifyLines(
"3, 4, 5"
)
}
@Test
fun testExampleDelayDuration02() {
test("ExampleDelayDuration02") { kotlinx.coroutines.examples.exampleDelayDuration02.main() }.verifyLines(
"1, 3, 4, 5"
)
}
@Test
fun testExampleDelay03() {
test("ExampleDelay03") { kotlinx.coroutines.examples.exampleDelay03.main() }.verifyLines(
"1, 3, 5, 7, 9"
)
}
@Test
fun testExampleDelayDuration03() {
test("ExampleDelayDuration03") { kotlinx.coroutines.examples.exampleDelayDuration03.main() }.verifyLines(
"1, 3, 5, 7, 9"
)
}
}