From c74654d5527ed83dc9d0c77c7426c7b36d32c028 Mon Sep 17 00:00:00 2001 From: troneillwit <35697128+troneillwit@users.noreply.github.com> Date: Mon, 14 Feb 2022 14:06:56 +0000 Subject: [PATCH] complete the test class for addFive --- .../gettingstarted/GettingStartedTest.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/test/java/tudelft/gettingstarted/GettingStartedTest.java b/src/test/java/tudelft/gettingstarted/GettingStartedTest.java index dca51b75..4ca08588 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 addFiveToZero() { + int result = new GettingStarted().addFive(0); + Assertions.assertEquals(5, result); + } // -// @Test -// public void addFiveToMinus20() { -// int result = new GettingStarted().addFive(???); -// Assertions.assertEquals(????,result); -// } + @Test + public void addFiveToMinus20() { + int result = new GettingStarted().addFive(-20); + Assertions.assertEquals(-15,result); + } }