Skip to content

Commit 652f637

Browse files
committed
[DO NOT MERGE] Make crlf explicit in tests
1 parent e3ea968 commit 652f637

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Tests/SwiftParserTest/StringLiteralRepresentedLiteralValueTests.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,12 @@ class StringLiteralRepresentedLiteralValueTests: ParserTestCase {
288288
return
289289
}
290290

291-
XCTAssertEqual(representedLiteralValue, expected.description, file: file, line: line)
291+
XCTAssertEqual(
292+
representedLiteralValue.replacing("\r", with: "\\r").replacing("\n", with: "\\n"),
293+
expected.description.replacing("\r", with: "\\r").replacing("\n", with: "\\n"),
294+
file: file,
295+
line: line
296+
)
292297
}
293298

294299
let literals = try! StringLiteralCollector()

0 commit comments

Comments
 (0)