Procházet zdrojové kódy

Merge pull request #754 from matthewstyler/master

Fixes #745 correct spelling mistake
Logan Stucki před 9 roky
rodič
revize
8d0fcca8bd

+ 1
- 1
exercises/largest-series-product/src/example/java/LargestSeriesProductCalculator.java Zobrazit soubor

@@ -36,7 +36,7 @@ public final class LargestSeriesProductCalculator {
36 36
         if (stringToSearch == null) {
37 37
             throw new IllegalArgumentException("String to search must be non-null.");
38 38
         } else if (!stringToSearch.chars().allMatch(Character::isDigit)) {
39
-            throw new IllegalArgumentException("String to search may only contains digits.");
39
+            throw new IllegalArgumentException("String to search may only contain digits.");
40 40
         }
41 41
     }
42 42
 

+ 1
- 1
exercises/largest-series-product/src/test/java/LargestSeriesProductCalculatorTest.java Zobrazit soubor

@@ -186,7 +186,7 @@ public class LargestSeriesProductCalculatorTest {
186 186
     @Test
187 187
     public void testStringToSearchContainingNonDigitCharacterIsRejected() {
188 188
         expectedException.expect(IllegalArgumentException.class);
189
-        expectedException.expectMessage("String to search may only contains digits.");
189
+        expectedException.expectMessage("String to search may only contain digits.");
190 190
 
191 191
         new LargestSeriesProductCalculator("1234a5");
192 192
     }