@@ -17,15 +17,14 @@ void searchPattern(String text, String pattern, Set<Integer> expectedOutput) {
17
17
}
18
18
19
19
private static Stream <Arguments > provideTestCases () {
20
- return Stream .of (
21
- Arguments .of ("abcbcabc" , "abc" , Set .of (0 , 5 )), //
22
- Arguments .of ("" , "abc" , Set .of ()), //
23
- Arguments .of ("abcdefg" , "xyz" , Set .of ()), //
24
- Arguments .of ("abcde" , "" , Set .of (1 , 2 , 3 , 4 , 5 )), //
25
- Arguments .of ("abcabcabc" , "abc" , Set .of (0 , 3 , 6 )), //
26
- Arguments .of ("abcabcabc" , "abcabcabc" , Set .of (0 )), //
27
- Arguments .of ("aaabbbaaa" , "aaa" , Set .of (0 , 6 )), //
28
- Arguments .of ("abcdefg" , "efg" , Set .of (4 ))//
20
+ return Stream .of (Arguments .of ("abcbcabc" , "abc" , Set .of (0 , 5 )), //
21
+ Arguments .of ("" , "abc" , Set .of ()), //
22
+ Arguments .of ("abcdefg" , "xyz" , Set .of ()), //
23
+ Arguments .of ("abcde" , "" , Set .of (1 , 2 , 3 , 4 , 5 )), //
24
+ Arguments .of ("abcabcabc" , "abc" , Set .of (0 , 3 , 6 )), //
25
+ Arguments .of ("abcabcabc" , "abcabcabc" , Set .of (0 )), //
26
+ Arguments .of ("aaabbbaaa" , "aaa" , Set .of (0 , 6 )), //
27
+ Arguments .of ("abcdefg" , "efg" , Set .of (4 )) //
29
28
);
30
29
}
31
- }
30
+ }
0 commit comments