We have a class Calculator, and in the class, we wrote a method divide().
class Calculator {
fun divide(a: Int, b: Int): Int {
return if (b == 0) 0 else a / b
}
}For testing our class, we also wrote a testing class CalculatorTest. Place the test class code correctly for the correct test class result.
Working experience of the tested class: