diff --git a/app/src/test/java/com/coderabbit/app/calculator/CalculatorTest.kt b/app/src/test/java/com/coderabbit/app/calculator/CalculatorTest.kt index 1dfa6ee..3bc81ff 100644 --- a/app/src/test/java/com/coderabbit/app/calculator/CalculatorTest.kt +++ b/app/src/test/java/com/coderabbit/app/calculator/CalculatorTest.kt @@ -47,6 +47,15 @@ class CalculatorTest { } } + @Test + fun `test divide function throws exception when dividing forty by zero`() { + val calculator = Calculator() + assertThrows(ArithmeticException::class.java){ + calculator.divide(40,0) + } + } + + @Test fun `test divide function che divide fourteen`() { val calculator = Calculator() diff --git a/coderabbit.yaml b/coderabbit.yaml index cb335de..99958bc 100644 --- a/coderabbit.yaml +++ b/coderabbit.yaml @@ -27,7 +27,7 @@ reviews: path_instructions: - path: "**/test/**" instructions: | - - test function names should follow naming rules like given (optional) ... when (required) ... then(required) + - function names should follow naming rules like given (optional) ... when (required) ... then(required) labeling_instructions: