All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmTest.examples.test.FlowDelayTest.kt Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
/*
 * 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"
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy