File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
Tests/SwiftParserTest/translated Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -27,17 +27,19 @@ extension ParserTestCase {
27
27
file: StaticString = #file,
28
28
line: UInt = #line
29
29
) {
30
- // FIXME: We should run `assertParse` with every possible line ending here.
31
- assertParse (
32
- markedSource,
33
- substructure: expectedSubstructure,
34
- substructureAfterMarker: substructureAfterMarker,
35
- diagnostics: expectedDiagnostics,
36
- applyFixIts: applyFixIts,
37
- fixedSource: expectedFixedSource,
38
- file: file,
39
- line: line
40
- )
30
+ for newline in [ " \n " , " \r " , " \r \n " ] {
31
+ assertParse (
32
+ markedSource. replacingOccurrences ( of: " \n " , with: newline) ,
33
+ substructure: expectedSubstructure,
34
+ substructureAfterMarker: substructureAfterMarker,
35
+ diagnostics: expectedDiagnostics,
36
+ applyFixIts: applyFixIts,
37
+ fixedSource: expectedFixedSource,
38
+ options: [ . normalizeNewlinesInFixedSource] ,
39
+ file: file,
40
+ line: line
41
+ )
42
+ }
41
43
}
42
44
}
43
45
You can’t perform that action at this time.
0 commit comments