@@ -19,6 +19,8 @@ public void testLetterCombinationsOfPhoneNumber(int[] numbers, List<String> expe
19
19
20
20
private static Stream <Arguments > provideTestCases () {
21
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" )));
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" )),
23
+ Arguments .of (new int [] {3 , 3 }, Arrays .asList ("dd" , "de" , "df" , "ed" , "ee" , "ef" , "fd" , "fe" , "ff" )), Arguments .of (new int [] {8 , 4 }, Arrays .asList ("tg" , "th" , "ti" , "ug" , "uh" , "ui" , "vg" , "vh" , "vi" )), Arguments .of (new int [] {2 , 0 }, Arrays .asList ("a " , "b " , "c " )),
24
+ Arguments .of (new int [] {9 , 2 }, Arrays .asList ("wa" , "wb" , "wc" , "xa" , "xb" , "xc" , "ya" , "yb" , "yc" , "za" , "zb" , "zc" )));
23
25
}
24
26
}
0 commit comments