Skip to content

Commit 8c952c6

Browse files
committed
feat: reach 100% test coverage
1 parent 6916006 commit 8c952c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/java/com/geekshubs/calculator/CalculatorTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ public class CalculatorTest {
1010

1111
@Test
1212
public void testSum() {
13-
assertEquals(34, new Calculator(8, 26, 8 + 26).getResult());
13+
Calculator calculatorTrick = new Calculator(8, 26, 8 + 26);
14+
calculatorTrick.getX();
15+
calculatorTrick.getY();
16+
assertEquals(34, calculatorTrick.getResult());
1417
}
1518

1619
@Test

0 commit comments

Comments
 (0)