Skip to content

Commit 989dcfa

Browse files
committed
reimplement and fix unit tests in the largest series product feature
Signed-off-by: xinri <[email protected]>
1 parent 2a74ff4 commit 989dcfa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

exercises/practice/largest-series-product/.meta/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"Smarticles101",
2323
"sonapraneeth-a",
2424
"sshine",
25+
"Xinri",
2526
"Zaldrick"
2627
],
2728
"files": {

exercises/practice/largest-series-product/src/test/java/LargestSeriesProductCalculatorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ public void testSeriesLengthLongerThanLengthOfStringToTestIsRejected() {
129129

130130
@Disabled("Remove to run test")
131131
@Test
132-
@DisplayName("reports 1 for empty string and empty product (0 span)")
133-
public void testEmptyStringToSearchAndSeriesOfNonZeroLengthIsRejected() {
132+
@DisplayName("rejects empty string and nonzero span")
133+
public void testEmptyStringAndNonZeroSpanIsRejected() {
134134
LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("");
135135

136136
assertThatExceptionOfType(IllegalArgumentException.class)

0 commit comments

Comments
 (0)