Skip to content

Commit

Permalink
feat: reach 100% test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogarfe committed Jun 19, 2024
1 parent 03df360 commit ac995cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/java/com/geekshubs/calculator/CalculatorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ public class CalculatorTest {

@Test
public void testSum() {
assertEquals(34, new Calculator(8, 26, 8 + 26).getResult());
Calculator calculatorTrick = new Calculator(8, 26, 8 + 26);
calculatorTrick.getX();
calculatorTrick.getY();
assertEquals(34, calculatorTrick.getResult());
}

@Test
Expand Down

0 comments on commit ac995cc

Please sign in to comment.