Created
January 14, 2022 00:37
-
-
Save isidore/d0ae6335dcb98905e47775877fb5e1a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.approvaltests.combinations.CombinationApprovals | |
import org.junit.jupiter.api.Test | |
import org.lambda.functions.Function2 | |
class InlineTest { | |
@Test | |
internal fun testInline() { | |
val numbers = arrayOf(10, 20, 30, 40, 50) | |
CombinationApprovals.verifyAllCombinations(Combine(), numbers, numbers) | |
} | |
class Combine:Function2<Int, Int, String>{ | |
override fun call(a: Int?, b: Int?): String { | |
return "$a + $b" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment