Skip to content

Commit b257d14

Browse files
samuelfacvil02
andauthored
Update src/test/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumberTest.java
Co-authored-by: Piotr Idzik <[email protected]>
1 parent d8ace83 commit b257d14

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

src/test/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumberTest.java

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,8 @@ public void testLetterCombinationsOfPhoneNumber(int[] numbers, List<String> expe
1717
assertEquals(expectedOutput, LetterCombinationsOfPhoneNumber.getCombinations(numbers));
1818
}
1919

20-
private static Stream<Arguments> provideTestCases() {
21-
return Stream.of(
22-
// Test case null:
23-
Arguments.of(null, List.of("")),
24-
25-
// Tesc case 1:
26-
Arguments.of(new int[] {}, List.of("")),
27-
28-
// Test case 2:
29-
Arguments.of(new int[] {2}, Arrays.asList("a", "b", "c")),
30-
31-
// Test case 3:
32-
Arguments.of(new int[] {2, 3}, Arrays.asList("ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf")),
33-
34-
// Test case 4:
35-
Arguments.of(new int[] {2, 3, 4},
36-
Arrays.asList("adg", "adh", "adi", "aeg", "aeh", "aei", "afg", "afh", "afi", //
37-
"bdg", "bdh", "bdi", "beg", "beh", "bei", "bfg", "bfh", "bfi", //
38-
"cdg", "cdh", "cdi", "ceg", "ceh", "cei", "cfg", "cfh", "cfi")));
20+
private static Stream<Arguments> provideTestCases() {
21+
return Stream.of(Arguments.of(null, List.of("")), Arguments.of(new int[] {}, List.of("")), Arguments.of(new int[] {2}, Arrays.asList("a", "b", "c")), Arguments.of(new int[] {2, 3}, Arrays.asList("ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf")),
22+
Arguments.of(new int[] {2, 3, 4}, Arrays.asList("adg", "adh", "adi", "aeg", "aeh", "aei", "afg", "afh", "afi", "bdg", "bdh", "bdi", "beg", "beh", "bei", "bfg", "bfh", "bfi", "cdg", "cdh", "cdi", "ceg", "ceh", "cei", "cfg", "cfh", "cfi")));
3923
}
4024
}

0 commit comments

Comments
 (0)