File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -305,11 +305,15 @@ extension UTS18Tests {
305
305
XCTAssertNotNil ( lineInput. firstMatch (
306
306
of: regex ( #"08..09"# ) . matchingSemantics ( . unicodeScalar) . dotMatchesNewlines ( ) ) )
307
307
308
- for _ in 0 ..< 10 { print ( " --- " ) }
308
+ for _ in 0 ..< 5 { print ( " --- " ) }
309
309
for (i, s) in lineInput. unicodeScalars. enumerated ( ) {
310
310
print ( " \( i) : scalar U+ \( s. value4Digits) " )
311
311
}
312
- for _ in 0 ..< 10 { print ( " --- " ) }
312
+ for _ in 0 ..< 5 { print ( " --- " ) }
313
+ for match in lineInput. matches ( of: regex ( #"\v"# ) . matchingSemantics ( . unicodeScalar) ) {
314
+ print ( lineInput. unicodeScalars. offsets ( of: match. 0 . startIndex..< match. 0 . endIndex) )
315
+ }
316
+ for _ in 0 ..< 5 { print ( " --- " ) }
313
317
314
318
// Does not contain an empty line
315
319
XCTAssertFalse ( lineInput. contains ( regex ( #"^$"# ) ) )
You can’t perform that action at this time.
0 commit comments