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 {
2727 file: StaticString = #file,
2828 line: UInt = #line
2929 ) {
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+ }
4143 }
4244}
4345
You can’t perform that action at this time.
0 commit comments