Kotlin, Testing, Software Development, Functional Programming.
== Int.MIN_VALUE) throw ForbiddenInputException(a) return a - 1 } class ForbiddenInputException(input: Int) : Exception("input $input is not valid") } And this is the testing suite, making sure that the corner cases are covered. import io.kotest.core.spec.style.StringSpec import