Kotlin, Testing, Software Development, Functional Programming.
integer smaller than the input" { forAll(Arb.int(min = Int.MIN_VALUE + 1)) { a -> MathOpsFixed.smallerInt(a) < a } } "smallerInt returns an exception if the input is not supported" { assertThrows<MathOpsFixed.ForbiddenInputException> { MathOpsFixed.smallerInt(Int.MIN_VALUE) } } })