Join Slack
Communities
Powered by
<@U0QAY96MA> I do believe that the usual way is to...
# kotlintest
l
LeoColman
01/08/2019, 12:27 PM
@thanksforallthefish
I do believe that the usual way is to use an external library or a DSL, but Kotlin have the function
require
, and I believe you can use it and implement your own comparisons.
Copy code
fun assertBiggerThan10(foo: Int) { require(foo > 10) { "Must be > 10" } }
Open in Slack
Previous
Next