Skip to content

Commit

Permalink
realm#2422 - Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Timofey Solonin authored and sjavora committed Mar 9, 2019
1 parent 1a130d1 commit f6ba18a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ extension CommandTests {

extension CompilerProtocolInitRuleTests {
static var allTests: [(String, (CompilerProtocolInitRuleTests) -> () throws -> Void)] = [
("testWithDefaultConfiguration", testWithDefaultConfiguration)
("testWithDefaultConfiguration", testWithDefaultConfiguration),
("testViolationMessageForExpressibleByIntegerLiteral", testViolationMessageForExpressibleByIntegerLiteral)
]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@
import XCTest

class CompilerProtocolInitRuleTests: XCTestCase {

private let ruleID = CompilerProtocolInitRule.description.identifier
func testDefaultConfiguration() {

func testWithDefaultConfiguration() {
verifyRule(CompilerProtocolInitRule.description)
}

func testViolationMessageForExpressibleByIntegerLiteral() {
guard let config = makeConfig(nil, ruleID) else {
XCTFail("Failed to create configuration")
return
}
let allViolations = violations("let a = NSNumber(integerLiteral: 1)", config: config)

let compilerProtocolInitViolation = allViolations.first { $0.ruleDescription.identifier == ruleID }
if let violation = compilerProtocolInitViolation {
XCTAssertEqual(
Expand Down

0 comments on commit f6ba18a

Please sign in to comment.