Skip to content

Commit 9a915e0

Browse files
committed
alphametics, armstrong-numbers
1 parent fdac2e8 commit 9a915e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

exercises/practice/alphametics/src/test/java/AlphameticsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public void testTenLetters() throws UnsolvablePuzzleException {
127127
@Disabled("Remove to run test")
128128
@Test
129129
@DisplayName("puzzle with ten letters and 199 addends")
130-
public void testTenLetters41Addends() throws UnsolvablePuzzleException {
130+
public void testTenLetters199Addends() throws UnsolvablePuzzleException {
131131
assertThat(new Alphametics("THIS + A + FIRE + THEREFORE + FOR + ALL + HISTORIES + I + TELL + A + " +
132132
"TALE + THAT + FALSIFIES + ITS + TITLE + TIS + A + LIE + THE + TALE + OF + THE + LAST + FIRE + " +
133133
"HORSES + LATE + AFTER + THE + FIRST + FATHERS + FORESEE + THE + HORRORS + THE + LAST + FREE + " +

exercises/practice/armstrong-numbers/src/test/java/ArmstrongNumbersTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ public void fourDigitNumberIsArmstrongNumber() {
6363

6464
@Disabled("Remove to run test")
6565
@Test
66-
@DisplayName("")
66+
@DisplayName("Four-digit number that is not an Armstrong number")
6767
public void fourDigitNumberIsNotArmstrongNumber() {
6868
assertThat(armstrongNumbers.isArmstrongNumber(9475))
6969
.isFalse();
7070
}
7171

7272
@Disabled("Remove to run test")
7373
@Test
74-
@DisplayName("Four-digit number that is not an Armstrong number")
74+
@DisplayName("Seven-digit number that is an Armstrong number")
7575
public void sevenDigitNumberIsArmstrongNumber() {
7676
assertThat(armstrongNumbers.isArmstrongNumber(9926315))
7777
.isTrue();

0 commit comments

Comments
 (0)