Files
Danny Mösch 087278c052 Introduce new CoreTests module (#6233)
It's supposed to test code from SwiftLintCore.
2025-09-04 20:56:51 +02:00

17 lines
422 B
Swift

import SwiftLintCore
import TestHelpers
import XCTest
final class LineEndingTests: SwiftLintTestCase {
func testCarriageReturnDoesNotCauseError() {
XCTAssert(
violations(
Example(
"// swiftlint:disable:next blanket_disable_command\r\n" +
"// swiftlint:disable all\r\nprint(123)\r\n"
)
).isEmpty
)
}
}