@@ -179,64 +179,53 @@ struct PreTokenizerTests {
179179 @Test ( " Split behavior merged with previous " )
180180 func splitBehaviorMergedWithPrevious( ) {
181181 #expect(
182- " the-final--countdown " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithPrevious) ==
183- [ " the- " , " final- " , " - " , " countdown " ]
182+ " the-final--countdown " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithPrevious) == [ " the- " , " final- " , " - " , " countdown " ]
184183 )
185184
186185 #expect(
187- " the-final--countdown- " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithPrevious) ==
188- [ " the- " , " final- " , " - " , " countdown- " ]
186+ " the-final--countdown- " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithPrevious) == [ " the- " , " final- " , " - " , " countdown- " ]
189187 )
190188
191189 #expect(
192- " the-final--countdown-- " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithPrevious) ==
193- [ " the- " , " final- " , " - " , " countdown- " , " - " ]
190+ " the-final--countdown-- " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithPrevious) == [ " the- " , " final- " , " - " , " countdown- " , " - " ]
194191 )
195192
196193 #expect(
197- " -the-final--countdown-- " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithPrevious) ==
198- [ " - " , " the- " , " final- " , " - " , " countdown- " , " - " ]
194+ " -the-final--countdown-- " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithPrevious) == [ " - " , " the- " , " final- " , " - " , " countdown- " , " - " ]
199195 )
200196
201197 #expect(
202- " --the-final--countdown-- " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithPrevious) ==
203- [ " - " , " - " , " the- " , " final- " , " - " , " countdown- " , " - " ]
198+ " --the-final--countdown-- " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithPrevious) == [ " - " , " - " , " the- " , " final- " , " - " , " countdown- " , " - " ]
204199 )
205200 }
206201
207202 @Test ( " Split behavior merged with next " )
208203 func splitBehaviorMergedWithNext( ) {
209204 #expect(
210- " the-final--countdown " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithNext) ==
211- [ " the " , " -final " , " - " , " -countdown " ]
205+ " the-final--countdown " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithNext) == [ " the " , " -final " , " - " , " -countdown " ]
212206 )
213207
214208 #expect(
215- " -the-final--countdown " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithNext) ==
216- [ " -the " , " -final " , " - " , " -countdown " ]
209+ " -the-final--countdown " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithNext) == [ " -the " , " -final " , " - " , " -countdown " ]
217210 )
218211
219212 #expect(
220- " --the-final--countdown " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithNext) ==
221- [ " - " , " -the " , " -final " , " - " , " -countdown " ]
213+ " --the-final--countdown " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithNext) == [ " - " , " -the " , " -final " , " - " , " -countdown " ]
222214 )
223215
224216 #expect(
225- " --the-final--countdown- " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithNext) ==
226- [ " - " , " -the " , " -final " , " - " , " -countdown " , " - " ]
217+ " --the-final--countdown- " . split ( by: " - " , options: . caseInsensitive, behavior: . mergedWithNext) == [ " - " , " -the " , " -final " , " - " , " -countdown " , " - " ]
227218 )
228219 }
229220
230221 @Test ( " Split behavior other " )
231222 func splitBehaviorOther( ) {
232223 #expect(
233- " the-final--countdown " . split ( by: " - " , options: . caseInsensitive, behavior: . isolated) ==
234- [ " the " , " - " , " final " , " - " , " - " , " countdown " ]
224+ " the-final--countdown " . split ( by: " - " , options: . caseInsensitive, behavior: . isolated) == [ " the " , " - " , " final " , " - " , " - " , " countdown " ]
235225 )
236226
237227 #expect(
238- " the-final--countdown " . split ( by: " - " , options: . caseInsensitive, behavior: . removed) ==
239- [ " the " , " final " , " countdown " ]
228+ " the-final--countdown " . split ( by: " - " , options: . caseInsensitive, behavior: . removed) == [ " the " , " final " , " countdown " ]
240229 )
241230 }
242231
0 commit comments