We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 185a880 commit 79e1339Copy full SHA for 79e1339
Tests/JExtractSwiftTests/Asserts/TextAssertions.swift
@@ -131,8 +131,12 @@ func assertOutput(
131
line: Int = #line,
132
column: Int = #column
133
) {
134
- let gotLines = got.split(separator: "\n")
135
- let expectedLines = expected.split(separator: "\n")
+ let gotLines = got.split(separator: "\n").filter { l in
+ l.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines).count > 0
136
+ }
137
+ let expectedLines = expected.split(separator: "\n").filter { l in
138
139
140
141
var diffLineNumbers: [Int] = []
142
0 commit comments