Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion coderabbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down