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

commonMain.com.zegreatrob.testmints.async.Exercise.kt Maven / Gradle / Ivy

package com.zegreatrob.testmints.async

import kotlinx.coroutines.Deferred

class Exercise(
    private val runTestAsync: (suspend C.(R) -> Unit) -> (suspend C.(R) -> Unit) -> Deferred
) {
    infix fun verify(assertionFunctions: suspend C.(R) -> Unit) = finalTransform {
        runTestAsync { }(assertionFunctions)
    }

    infix fun verifyAnd(assertionFunctions: suspend C.(R) -> Unit) = Verify(runTestAsync(assertionFunctions))

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy