Closed lukeredpath closed 11 months ago
Strange! The \r
is definitely preserved in the syntax we're writing, so this is probably an issue of Xcode's line ending settings. Either way carriage returns are probably an important thing to verify, so I've opened #772 to address.
I've tested out the above fix and it has resolved my issue.
Describe the bug I'm converting our assertion helper that tests our API client routes generate the correct URL requests over to the new inline snapshot tool. It works well except for one test that uses my
swift-url-routing-multipart
extension to create a multipart request body. This intentionally contains\r\n
line breaks, but these get converted to\n
when written into the source file using the.raw
strategy, causing the test to fail when re-run.Expected behavior I'd expect the original line breaks to be preserved.
Environment