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
2 changes: 1 addition & 1 deletion .github/instructions.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- test names should follow naming rules like given (optional) ... when (required) ... then(required)
- test function names should follow naming rules like given (optional) ... when (required) ... then(required)
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.coderabbit.app.calculator

import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Test

Expand All @@ -10,4 +11,10 @@ class CalculatorTest {
val calculator = Calculator()
assertTrue(calculator.add(1,2) == 3)
}

@Test
fun `test add function equals`() {
val calculator = Calculator()
assertEquals(calculator.add(1,2) ,3)
}
}