diff --git a/src/test/java/tudelft/gettingstarted/GettingStartedTest.java b/src/test/java/tudelft/gettingstarted/GettingStartedTest.java index dca51b75..6d269bba 100644 --- a/src/test/java/tudelft/gettingstarted/GettingStartedTest.java +++ b/src/test/java/tudelft/gettingstarted/GettingStartedTest.java @@ -13,15 +13,15 @@ public void addFiveTo20() { // UNCOMMENT THE CODE BELOW, AND FILL THE GAPS! -// @Test -// public void addFiveToZero() { -// int result = new GettingStarted().addFive(???); -// Assertions.assertEquals(???, result); -// } -// -// @Test -// public void addFiveToMinus20() { -// int result = new GettingStarted().addFive(???); -// Assertions.assertEquals(????,result); -// } + @Test + public void addFiveToZero() { + int result = new GettingStarted().addFive(0); + Assertions.assertEquals(5, result); + } + + @Test + public void addFiveToMinus20() { + int result = new GettingStarted().addFive(-20); + Assertions.assertEquals(-15,result); + } }