diff --git a/exercises/practice/custom-set/src/test/java/CustomSetTest.java b/exercises/practice/custom-set/src/test/java/CustomSetTest.java index 4f32727c4..1032ecd50 100644 --- a/exercises/practice/custom-set/src/test/java/CustomSetTest.java +++ b/exercises/practice/custom-set/src/test/java/CustomSetTest.java @@ -1,4 +1,5 @@ import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.util.Arrays; @@ -9,6 +10,7 @@ public class CustomSetTest { @Test + @DisplayName("Returns true if the set contains no elements") public void setsWithNoElementsAreEmpty() { CustomSet customSet = new CustomSet<>(Collections.emptyList()); assertThat(customSet.isEmpty()).isTrue(); @@ -16,6 +18,7 @@ public void setsWithNoElementsAreEmpty() { @Disabled("Remove to run test") @Test + @DisplayName("sets with elements are not empty") public void setsWithElementsAreNotEmpty() { CustomSet customSet = new CustomSet<>(Collections.singletonList('1')); assertThat(customSet.isEmpty()).isFalse(); @@ -23,6 +26,7 @@ public void setsWithElementsAreNotEmpty() { @Disabled("Remove to run test") @Test + @DisplayName("nothing is contained in an empty set") public void nothingIsContainedInAnEmptySet() { CustomSet customSet = new CustomSet<>(Collections.emptyList()); assertThat(customSet.contains("1")).isFalse(); @@ -30,6 +34,7 @@ public void nothingIsContainedInAnEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("when the element is in the set") public void whenTheElementIsInTheSet() { CustomSet customSet = new CustomSet<>(Arrays.asList(1, 2, 3)); assertThat(customSet.contains(1)).isTrue(); @@ -37,6 +42,7 @@ public void whenTheElementIsInTheSet() { @Disabled("Remove to run test") @Test + @DisplayName("when the element is not in the set") public void whenTheElementIsNotInTheSet() { CustomSet customSet = new CustomSet<>(Arrays.asList('1', '2', '3')); assertThat(customSet.contains('4')).isFalse(); @@ -44,6 +50,7 @@ public void whenTheElementIsNotInTheSet() { @Disabled("Remove to run test") @Test + @DisplayName("empty set is a subset of another empty set") public void emptySetIsASubsetOfAnotherEmptySet() { CustomSet customSet = new CustomSet<>(Collections.emptyList()); CustomSet secondCustomSet = new CustomSet<>(Collections.emptyList()); @@ -52,6 +59,7 @@ public void emptySetIsASubsetOfAnotherEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("empty set is a subset of non-empty set") public void emptySetIsASubsetOfNonEmptySet() { CustomSet customSet = new CustomSet<>(Collections.singletonList(1)); CustomSet secondCustomSet = new CustomSet<>(Collections.emptyList()); @@ -60,6 +68,7 @@ public void emptySetIsASubsetOfNonEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("non-empty set is not a subset of empty set") public void nonEmptySetIsNotASubsetOfEmptySet() { CustomSet customSet = new CustomSet<>(Collections.emptyList()); CustomSet secondCustomSet = new CustomSet<>(Collections.singletonList('1')); @@ -68,6 +77,7 @@ public void nonEmptySetIsNotASubsetOfEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("set is a subset of set with exact same elements") public void setIsASubsetOfSetWithExactSameElements() { CustomSet customSet = new CustomSet<>(Arrays.asList("1", "2", "3")); CustomSet secondCustomSet = new CustomSet<>(Arrays.asList("1", "2", "3")); @@ -76,6 +86,7 @@ public void setIsASubsetOfSetWithExactSameElements() { @Disabled("Remove to run test") @Test + @DisplayName("set is a subset of larger set with same elements") public void setIsASubsetOfLargerSetWithSameElements() { CustomSet customSet = new CustomSet<>(Arrays.asList(4, 1, 2, 3)); CustomSet secondCustomSet = new CustomSet<>(Arrays.asList(1, 2, 3)); @@ -84,6 +95,7 @@ public void setIsASubsetOfLargerSetWithSameElements() { @Disabled("Remove to run test") @Test + @DisplayName("set is not a subset of set that does not contain its elements") public void setIsNotASubsetOfSetThatDoesNotContainItsElements() { CustomSet customSet = new CustomSet<>(Arrays.asList('4', '1', '3')); CustomSet secondCustomSet = new CustomSet<>(Arrays.asList('1', '2', '3')); @@ -92,6 +104,7 @@ public void setIsNotASubsetOfSetThatDoesNotContainItsElements() { @Disabled("Remove to run test") @Test + @DisplayName("the empty set is disjoint with itself") public void theEmptySetIsDisjointWithItself() { CustomSet customSet = new CustomSet<>(Collections.emptyList()); CustomSet secondCustomSet = new CustomSet<>(Collections.emptyList()); @@ -100,6 +113,7 @@ public void theEmptySetIsDisjointWithItself() { @Disabled("Remove to run test") @Test + @DisplayName("empty set is disjoint with non-empty set") public void emptySetIsDisjointWithNonEmptySet() { CustomSet customSet = new CustomSet<>(Collections.emptyList()); CustomSet secondCustomSet = new CustomSet<>(Collections.singletonList(1)); @@ -108,6 +122,7 @@ public void emptySetIsDisjointWithNonEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("non-empty set is disjoint with empty set") public void nonEmptySetIsDisjointWithEmptySet() { CustomSet customSet = new CustomSet<>(Collections.singletonList('1')); CustomSet secondCustomSet = new CustomSet<>(Collections.emptyList()); @@ -116,6 +131,7 @@ public void nonEmptySetIsDisjointWithEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("sets are not disjoint if they share an element") public void setsAreNotDisjointIfTheyShareAnElement() { CustomSet customSet = new CustomSet<>(Arrays.asList("1", "2")); CustomSet secondCustomSet = new CustomSet<>(Arrays.asList("2", "3")); @@ -124,6 +140,7 @@ public void setsAreNotDisjointIfTheyShareAnElement() { @Disabled("Remove to run test") @Test + @DisplayName("sets are disjoint if they share no elements") public void setsAreDisjointIfTheyShareNoElements() { CustomSet customSet = new CustomSet<>(Arrays.asList(1, 2)); CustomSet secondCustomSet = new CustomSet<>(Arrays.asList(3, 4)); @@ -132,6 +149,7 @@ public void setsAreDisjointIfTheyShareNoElements() { @Disabled("Remove to run test") @Test + @DisplayName("empty sets are equal") public void emptySetsAreEqual() { CustomSet customSet = new CustomSet<>(Collections.emptyList()); CustomSet secondCustomSet = new CustomSet<>(Collections.emptyList()); @@ -140,6 +158,7 @@ public void emptySetsAreEqual() { @Disabled("Remove to run test") @Test + @DisplayName("empty set is not equal to non-empty set") public void emptySetIsNotEqualToNonEmptySet() { CustomSet customSet = new CustomSet<>(Collections.emptyList()); CustomSet secondCustomSet = new CustomSet<>(Arrays.asList("1", "2", "3")); @@ -148,6 +167,7 @@ public void emptySetIsNotEqualToNonEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("non-empty set is not equal to empty set") public void nonEmptySetIsNotEqualToEmptySet() { CustomSet customSet = new CustomSet<>(Arrays.asList(1, 2, 3)); CustomSet secondCustomSet = new CustomSet<>(Collections.emptyList()); @@ -156,6 +176,7 @@ public void nonEmptySetIsNotEqualToEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("sets with the same elements are equal") public void setsWithTheSameElementsAreEqual() { CustomSet customSet = new CustomSet<>(Arrays.asList('1', '2')); CustomSet secondCustomSet = new CustomSet<>(Arrays.asList('2', '1')); @@ -164,6 +185,7 @@ public void setsWithTheSameElementsAreEqual() { @Disabled("Remove to run test") @Test + @DisplayName("sets with different elements are not equal") public void setsWithDifferentElementsAreNotEqual() { CustomSet customSet = new CustomSet<>(Arrays.asList("1", "2", "3")); CustomSet secondCustomSet = new CustomSet<>(Arrays.asList("1", "2", "4")); @@ -172,6 +194,7 @@ public void setsWithDifferentElementsAreNotEqual() { @Disabled("Remove to run test") @Test + @DisplayName("set is not equal to larger set with same elements") public void setIsNotEqualToLargerSetWithSameElements() { CustomSet customSet = new CustomSet<>(Arrays.asList("1", "2", "3")); CustomSet secondCustomSet = new CustomSet<>(Arrays.asList("1", "2", "3", "4")); @@ -180,6 +203,7 @@ public void setIsNotEqualToLargerSetWithSameElements() { @Disabled("Remove to run test") @Test + @DisplayName("set is equal to a set constructed from an array with duplicates") public void secondSetWithDuplicatesIsEqualToFirstSet() { CustomSet customSet = new CustomSet<>(Collections.singletonList("1")); CustomSet secondCustomSet = new CustomSet<>(Arrays.asList("1", "1")); @@ -188,6 +212,7 @@ public void secondSetWithDuplicatesIsEqualToFirstSet() { @Disabled("Remove to run test") @Test + @DisplayName("difference removes all duplicates in the first set") public void firstSetWithDuplicatesIsEqualToSecondSet() { CustomSet customSet = new CustomSet<>(Arrays.asList("1", "1")); CustomSet secondCustomSet = new CustomSet<>(Collections.singletonList("1")); @@ -196,6 +221,7 @@ public void firstSetWithDuplicatesIsEqualToSecondSet() { @Disabled("Remove to run test") @Test + @DisplayName("add to empty set") public void addToEmptySet() { int element = 3; CustomSet expected = new CustomSet<>(Collections.unmodifiableList(Collections.singletonList(element))); @@ -211,6 +237,7 @@ public void addToEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("add to non-empty set") public void addToNonEmptySet() { char element = '3'; CustomSet expected = new CustomSet<>(Collections.unmodifiableList( @@ -226,6 +253,7 @@ public void addToNonEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("adding an existing element does not change the set") public void addingAnExistingElementDoesNotChangeTheSet() { String element = "3"; CustomSet expected = new CustomSet<>(Collections.unmodifiableList(Arrays.asList("1", "2", "3"))); @@ -239,6 +267,7 @@ public void addingAnExistingElementDoesNotChangeTheSet() { @Disabled("Remove to run test") @Test + @DisplayName("intersection of two empty sets is an empty set") public void intersectionOfTwoEmptySetsIsAnEmptySet() { CustomSet actual = new CustomSet(Collections.emptyList()) .getIntersection(new CustomSet<>(Collections.emptyList())); @@ -249,6 +278,7 @@ public void intersectionOfTwoEmptySetsIsAnEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("intersection of an empty set and non-empty set is an empty set") public void intersectionOfAnEmptySetAndNonEmptySetIsAnEmptySet() { CustomSet actual = new CustomSet(Collections.emptyList()) .getIntersection(new CustomSet<>(Arrays.asList('3', '2', '5'))); @@ -259,6 +289,7 @@ public void intersectionOfAnEmptySetAndNonEmptySetIsAnEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("intersection of a non-empty set and an empty set is an empty set") public void intersectionOfANonEmptySetAndAnEmptySetIsAnEmptySet() { CustomSet actual = new CustomSet<>(Arrays.asList("1", "2", "3", "4")) .getIntersection(new CustomSet<>(Collections.emptyList())); @@ -270,6 +301,7 @@ public void intersectionOfANonEmptySetAndAnEmptySetIsAnEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("intersection of two sets with no shared elements is an empty set") public void intersectionOfTwoSetsWithNoSharedElementsIsAnEmptySet() { CustomSet actual = new CustomSet<>(Arrays.asList(1, 2, 3)) .getIntersection(new CustomSet<>(Arrays.asList(4, 5, 6))); @@ -280,6 +312,7 @@ public void intersectionOfTwoSetsWithNoSharedElementsIsAnEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("intersection of two sets with shared elements is a set of the shared elements") public void intersectionOfTwoSetsWithSharedElementsIsASetOfTheSharedElements() { CustomSet expected = new CustomSet<>(Collections.unmodifiableList(Arrays.asList('2', '3'))); CustomSet actual = new CustomSet<>(Arrays.asList('1', '2', '3', '4')) @@ -292,6 +325,7 @@ public void intersectionOfTwoSetsWithSharedElementsIsASetOfTheSharedElements() { @Disabled("Remove to run test") @Test + @DisplayName("difference of two empty sets is an empty set") public void differenceOfTwoEmptySetsIsAnEmptySet() { CustomSet actual = new CustomSet(Collections.emptyList()) .getDifference(new CustomSet<>(Collections.emptyList())); @@ -302,6 +336,7 @@ public void differenceOfTwoEmptySetsIsAnEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("difference of empty set and non-empty set is an empty set") public void differenceOfAnEmptySetAndNonEmptySetIsAnEmptySet() { CustomSet actual = new CustomSet(Collections.emptyList()) .getDifference(new CustomSet<>(Arrays.asList(3, 2, 5))); @@ -312,6 +347,7 @@ public void differenceOfAnEmptySetAndNonEmptySetIsAnEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("difference of a non-empty set and an empty set is the non-empty set") public void differenceOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() { CustomSet expected = new CustomSet<>(Collections.unmodifiableList( Arrays.asList('1', '2', '3', '4'))); @@ -325,6 +361,7 @@ public void differenceOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("difference of two non-empty sets is a set of elements that are only in the first set") public void differenceOfTwoNonEmptySetsIsASetOfElementsThatAreOnlyInTheFirstSet() { CustomSet expected = new CustomSet<>(Collections.unmodifiableList(Arrays.asList("1", "3"))); CustomSet actual = new CustomSet<>(Arrays.asList("3", "2", "1")) @@ -338,6 +375,7 @@ public void differenceOfTwoNonEmptySetsIsASetOfElementsThatAreOnlyInTheFirstSet( @Disabled("Remove to run test") @Test + @DisplayName("union of empty sets is an empty set") public void unionOfTwoEmptySetsIsAnEmptySet() { CustomSet actual = new CustomSet(Collections.emptyList()) .getUnion(new CustomSet<>(Collections.emptyList())); @@ -348,6 +386,7 @@ public void unionOfTwoEmptySetsIsAnEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("union of an empty set and non-empty set is the non-empty set") public void unionOfAnEmptySetAndNonEmptySetIsTheNonEmptySet() { CustomSet expected = new CustomSet<>(Collections.unmodifiableList(Collections.singletonList('2'))); CustomSet actual = new CustomSet(Collections.emptyList()) @@ -360,6 +399,7 @@ public void unionOfAnEmptySetAndNonEmptySetIsTheNonEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("union of a non-empty set and empty set is the non-empty set") public void unionOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() { CustomSet expected = new CustomSet<>(Collections.unmodifiableList(Arrays.asList("1", "3"))); CustomSet actual = new CustomSet<>(Arrays.asList("1", "3")) @@ -372,6 +412,7 @@ public void unionOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() { @Disabled("Remove to run test") @Test + @DisplayName("union of non-empty sets contains all unique elements") public void unionOfTwoNonEmptySetsContainsAllUniqueElements() { CustomSet expected = new CustomSet<>(Collections.unmodifiableList(Arrays.asList(3, 2, 1))); CustomSet actual = new CustomSet<>(Arrays.asList(1, 3)) diff --git a/exercises/practice/darts/src/test/java/DartsTest.java b/exercises/practice/darts/src/test/java/DartsTest.java index f6e10baed..45376bfe4 100644 --- a/exercises/practice/darts/src/test/java/DartsTest.java +++ b/exercises/practice/darts/src/test/java/DartsTest.java @@ -1,4 +1,5 @@ import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -7,60 +8,70 @@ public class DartsTest { Darts darts = new Darts(); @Test + @DisplayName("Missed target") public void missedTarget() { assertThat(darts.score(-9, 9)).isEqualTo(0); } @Disabled("Remove to run test") @Test + @DisplayName("On the outer circle") public void onTheOuterCircle() { assertThat(darts.score(0, 10)).isEqualTo(1); } @Disabled("Remove to run test") @Test + @DisplayName("On the middle circle") public void onTheMiddleCircle() { assertThat(darts.score(-5, 0)).isEqualTo(5); } @Disabled("Remove to run test") @Test + @DisplayName("On the inner circle") public void onTheInnerCircle() { assertThat(darts.score(0, -1)).isEqualTo(10); } @Disabled("Remove to run test") @Test + @DisplayName("Exactly on center") public void exactlyOnCentre() { assertThat(darts.score(0, 0)).isEqualTo(10); } @Disabled("Remove to run test") @Test + @DisplayName("Near the center") public void nearTheCentre() { assertThat(darts.score(-0.1, -0.1)).isEqualTo(10); } @Disabled("Remove to run test") @Test + @DisplayName("Just within the inner circle") public void justWithinTheInnerCircle() { assertThat(darts.score(0.7, 0.7)).isEqualTo(10); } @Disabled("Remove to run test") @Test + @DisplayName("Just outside the inner circle") public void justOutsideTheInnerCircle() { assertThat(darts.score(0.8, -0.8)).isEqualTo(5); } @Disabled("Remove to run test") @Test + @DisplayName("Just within the middle circle") public void justWithinTheMiddleCircle() { assertThat(darts.score(-3.5, 3.5)).isEqualTo(5); } @Disabled("Remove to run test") @Test + @DisplayName("Just outside the middle circle") public void justOutsideTheMiddleCircle() { assertThat(darts.score(-3.6, -3.6)).isEqualTo(1); } @@ -68,18 +79,21 @@ public void justOutsideTheMiddleCircle() { @Disabled("Remove to run test") @Test + @DisplayName("Just within the outer circle") public void justWithinTheOuterCircle() { assertThat(darts.score(-7.0, 7.0)).isEqualTo(1); } @Disabled("Remove to run test") @Test + @DisplayName("Just outside the outer circle") public void justOutsideTheOuterCircle() { assertThat(darts.score(7.1, -7.1)).isEqualTo(0); } @Disabled("Remove to run test") @Test + @DisplayName("Asymmetric position between the inner and middle circles") public void asymmetricPositionBetweenTheInnerAndMiddleCircles() { assertThat(darts.score(0.5, -4)).isEqualTo(5); } diff --git a/exercises/practice/diamond/src/test/java/DiamondPrinterTest.java b/exercises/practice/diamond/src/test/java/DiamondPrinterTest.java index 3388aeefe..6608faeac 100644 --- a/exercises/practice/diamond/src/test/java/DiamondPrinterTest.java +++ b/exercises/practice/diamond/src/test/java/DiamondPrinterTest.java @@ -1,7 +1,8 @@ import static org.assertj.core.api.Assertions.assertThat; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; public class DiamondPrinterTest { @@ -14,6 +15,7 @@ public void setUp() { } @Test + @DisplayName("Degenerate case with a single 'A' row") public void testOneByOneDiamond() { assertThat(diamondPrinter.printToList('A')) .containsExactly("A"); @@ -21,6 +23,7 @@ public void testOneByOneDiamond() { @Disabled("Remove to run test") @Test + @DisplayName("Degenerate case with no row containing 3 distinct groups of spaces") public void testTwoByTwoDiamond() { assertThat(diamondPrinter.printToList('B')) .containsExactly( @@ -31,6 +34,7 @@ public void testTwoByTwoDiamond() { @Disabled("Remove to run test") @Test + @DisplayName("Smallest non-degenerate case with odd diamond side length") public void testThreeByThreeDiamond() { assertThat(diamondPrinter.printToList('C')) .containsExactly( @@ -43,6 +47,7 @@ public void testThreeByThreeDiamond() { @Disabled("Remove to run test") @Test + @DisplayName("Smallest non-degenerate case with even diamond side length") public void testFourByFourDiamond() { assertThat(diamondPrinter.printToList('D')) .containsExactly( @@ -57,6 +62,7 @@ public void testFourByFourDiamond() { @Disabled("Remove to run test") @Test + @DisplayName("Largest possible diamond") public void testFullDiamond() { assertThat(diamondPrinter.printToList('Z')) .containsExactly( diff --git a/exercises/practice/difference-of-squares/src/test/java/DifferenceOfSquaresCalculatorTest.java b/exercises/practice/difference-of-squares/src/test/java/DifferenceOfSquaresCalculatorTest.java index 3df042fdf..93d3af7a4 100644 --- a/exercises/practice/difference-of-squares/src/test/java/DifferenceOfSquaresCalculatorTest.java +++ b/exercises/practice/difference-of-squares/src/test/java/DifferenceOfSquaresCalculatorTest.java @@ -1,5 +1,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -14,6 +15,7 @@ public void setUp() { } @Test + @DisplayName("square of sum 1") public void testSquareOfSumUpToOne() { int expected = 1; int actual = calculator.computeSquareOfSumTo(1); @@ -22,6 +24,7 @@ public void testSquareOfSumUpToOne() { @Disabled("Remove to run test") @Test + @DisplayName("square of sum 5") public void testSquareOfSumUpToFive() { int expected = 225; int actual = calculator.computeSquareOfSumTo(5); @@ -30,6 +33,7 @@ public void testSquareOfSumUpToFive() { @Disabled("Remove to run test") @Test + @DisplayName("square of sum 100") public void testSquareOfSumUpToHundred() { int expected = 25502500; int actual = calculator.computeSquareOfSumTo(100); @@ -38,6 +42,7 @@ public void testSquareOfSumUpToHundred() { @Disabled("Remove to run test") @Test + @DisplayName("sum of squares 1") public void testSumOfSquaresUpToOne() { int expected = 1; int actual = calculator.computeSumOfSquaresTo(1); @@ -46,6 +51,7 @@ public void testSumOfSquaresUpToOne() { @Disabled("Remove to run test") @Test + @DisplayName("sum of squares 5") public void testSumOfSquaresUpToFive() { int expected = 55; int actual = calculator.computeSumOfSquaresTo(5); @@ -54,6 +60,7 @@ public void testSumOfSquaresUpToFive() { @Disabled("Remove to run test") @Test + @DisplayName("sum of squares 100") public void testSumOfSquaresUpToHundred() { int expected = 338350; int actual = calculator.computeSumOfSquaresTo(100); @@ -62,6 +69,7 @@ public void testSumOfSquaresUpToHundred() { @Disabled("Remove to run test") @Test + @DisplayName("difference of squares 1") public void testDifferenceOfSquaresUpToOne() { int expected = 0; int actual = calculator.computeDifferenceOfSquares(1); @@ -70,6 +78,7 @@ public void testDifferenceOfSquaresUpToOne() { @Disabled("Remove to run test") @Test + @DisplayName("difference of squares 5") public void testDifferenceOfSquaresUpToFive() { int expected = 170; int actual = calculator.computeDifferenceOfSquares(5); @@ -78,6 +87,7 @@ public void testDifferenceOfSquaresUpToFive() { @Disabled("Remove to run test") @Test + @DisplayName("difference of squares 100") public void testDifferenceOfSquaresUpToHundred() { int expected = 25164150; int actual = calculator.computeDifferenceOfSquares(100);