import SwiftLintCore
import TestHelpers
import Testing

@Suite(.rulesRegistered)
struct LineEndingTests {
    @Test
    func carriageReturnDoesNotCauseError() {
        #expect(
            violations(
                Example(code:
                    "// swiftlint:disable:next blanket_disable_command\r\n"
                        + "// swiftlint:disable all\r\nprint(123)\r\n"
                )
            ).isEmpty
        )
    }
}
