@@ -17,24 +17,8 @@ public void testLetterCombinationsOfPhoneNumber(int[] numbers, List<String> expe
17
17
assertEquals (expectedOutput , LetterCombinationsOfPhoneNumber .getCombinations (numbers ));
18
18
}
19
19
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" )));
39
23
}
40
24
}
0 commit comments