Files
SwiftLint/Tests/FrameworkTests/LineEndingTests.swift
Danny Mösch 15b285527a Separate built-in rule tests from framework tests (#5924)
* Short names for test modules
* Lint plugins and `Package.swift` in integration tests
* Simplify and merge file groups in Bazel
* Move common functions to `TestHelpers`
2024-12-30 12:26:46 +01:00

16 lines
421 B
Swift

@testable import SwiftLintBuiltInRules
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
)
}
}