@@ -93,8 +93,9 @@ public static function provideReduceMultiples(): iterable
93
93
{
94
94
yield from [
95
95
// string, expected
96
- 'double commas ' => ['Fred, Bill,, Joe, Jimmy ' , 'Fred, Bill, Joe, Jimmy ' ],
97
- 'double commas at last ' => ['Ringo, John, Paul,, ' , 'Ringo, John, Paul, ' ],
96
+ 'double commas ' => ['Fred, Bill,, Joe, Jimmy ' , 'Fred, Bill, Joe, Jimmy ' ],
97
+ 'double commas at last ' => ['Ringo, John, Paul,, ' , 'Ringo, John, Paul, ' ],
98
+ 'commas at first and last ' => [',Fred, Bill,, Joe, Jimmy, ' , ',Fred, Bill, Joe, Jimmy, ' ],
98
99
];
99
100
}
100
101
@@ -108,8 +109,9 @@ public static function provideReduceMultiplesWithTrim(): iterable
108
109
{
109
110
yield from [
110
111
// string, expected
111
- 'double commas ' => ['Fred, Bill,, Joe, Jimmy ' , 'Fred, Bill, Joe, Jimmy ' ],
112
- 'double commas at last ' => ['Ringo, John, Paul,, ' , 'Ringo, John, Paul ' ],
112
+ 'double commas ' => ['Fred, Bill,, Joe, Jimmy ' , 'Fred, Bill, Joe, Jimmy ' ],
113
+ 'double commas at last ' => ['Ringo, John, Paul,, ' , 'Ringo, John, Paul ' ],
114
+ 'commas at first and last ' => [',Fred, Bill,, Joe, Jimmy, ' , 'Fred, Bill, Joe, Jimmy ' ],
113
115
];
114
116
}
115
117
0 commit comments