@@ -124,18 +124,18 @@ public void testSeriesLengthLongerThanLengthOfStringToTestIsRejected() {
124124
125125 assertThatExceptionOfType (IllegalArgumentException .class )
126126 .isThrownBy (() -> calculator .calculateLargestProductForSeriesLength (4 ))
127- .withMessage ("Series length must be less than or equal to the length of the string to search." );
127+ .withMessage ("Series length must not exceed the length of the string to search." );
128128 }
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 )
137137 .isThrownBy (() -> calculator .calculateLargestProductForSeriesLength (1 ))
138- .withMessage ("Series length must be less than or equal to the length of the string to search." );
138+ .withMessage ("Series length must not exceed the length of the string to search." );
139139 }
140140
141141 @ Disabled ("Remove to run test" )
@@ -155,7 +155,7 @@ public void testNegativeSeriesLengthIsRejected() {
155155
156156 assertThatExceptionOfType (IllegalArgumentException .class )
157157 .isThrownBy (() -> calculator .calculateLargestProductForSeriesLength (-1 ))
158- .withMessage ("Series length must be non- negative." );
158+ .withMessage ("Series length must not be negative." );
159159 }
160160
161161 @ Disabled ("Remove to run test" )
0 commit comments