Skip to content
Closed
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
8 changes: 8 additions & 0 deletions app/src/main/java/com/coderabbit/app/calculator/Adder.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.coderabbit.app.calculator

class Adder {

fun minus(a: Int, b: Int): Int {
return a - b
}
}
13 changes: 13 additions & 0 deletions app/src/test/java/com/coderabbit/app/calculator/AdderTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.coderabbit.app.calculator

import org.junit.Test


class AdderTest {

@Test
fun `test minus function`() {
val adder = Adder()
assert(adder.minus(5, 3) == 2)
}
}
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: |
- function names should follow naming rules like given (optional) ... when (required) ... then(required)
- function names should follow naming rules like given (optional) data when (required) condition then(required) result


labeling_instructions:
Expand Down