diff --git a/Tests/SwiftLintFrameworkTests/EmptyCountRuleTests.swift b/Tests/SwiftLintFrameworkTests/EmptyCountRuleTests.swift index a54866529d..7c152b516f 100644 --- a/Tests/SwiftLintFrameworkTests/EmptyCountRuleTests.swift +++ b/Tests/SwiftLintFrameworkTests/EmptyCountRuleTests.swift @@ -10,25 +10,25 @@ class EmptyCountRuleTests: XCTestCase { func testEmptyCountWithOnlyAfterDot() { // Test with `only_after_dot` set to true let nonTriggeringExamples = [ - "var count = 0\n", - "[Int]().isEmpty\n", - "[Int]().count > 1\n", - "[Int]().count == 1\n", - "[Int]().count == 0xff\n", - "[Int]().count == 0b01\n", - "[Int]().count == 0o07\n", - "discount == 0\n", - "order.discount == 0\n", - "count == 0\n" + Example("var count = 0\n"), + Example("[Int]().isEmpty\n"), + Example("[Int]().count > 1\n"), + Example("[Int]().count == 1\n"), + Example("[Int]().count == 0xff\n"), + Example("[Int]().count == 0b01\n"), + Example("[Int]().count == 0o07\n"), + Example("discount == 0\n"), + Example("order.discount == 0\n"), + Example("count == 0\n") ] let triggeringExamples = [ - "[Int]().↓count == 0\n", - "[Int]().↓count > 0\n", - "[Int]().↓count != 0\n", - "[Int]().↓count == 0x0\n", - "[Int]().↓count == 0x00_00\n", - "[Int]().↓count == 0b00\n", - "[Int]().↓count == 0o00\n" + Example("[Int]().↓count == 0\n"), + Example("[Int]().↓count > 0\n"), + Example("[Int]().↓count != 0\n"), + Example("[Int]().↓count == 0x0\n"), + Example("[Int]().↓count == 0x00_00\n"), + Example("[Int]().↓count == 0b00\n"), + Example("[Int]().↓count == 0o00\n") ] let description = EmptyCountRule.description