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

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

There is a newer version: 12.1.30
Show newest version
package com.zegreatrob.testmints

class Exercise(private val runTest: (C.(R) -> Any) -> (C.(R) -> Unit) -> Unit) {
    @Suppress("ktlint:standard:unnecessary-parentheses-before-trailing-lambda")
    infix fun verify(assertionFunctions: C.(R) -> Unit) = runTest(assertionFunctions)() {}
    infix fun verifyAnd(assertionFunctions: C.(R) -> Unit) = Verify(runTest(assertionFunctions))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy