Skip to content

Commit

Permalink
Fix warnings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daehn committed Apr 3, 2017
1 parent 46643c0 commit 8799b2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>AFA1D9FD1C90B4F600C65B90</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>BF0D678B1C8DCD25007CE00F</key>
<dict>
<key>primary</key>
Expand Down
2 changes: 1 addition & 1 deletion DieTests/DieTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class DieTests: XCTestCase {
let (countEqual, statusEqual) = (callCount == expectedCount, exitStatus == expectedStatus)
let fail: (String) -> Void = { self.recordFailure(withDescription: $0, inFile: file, atLine: line, expected: true) }
if !countEqual { fail("Incorrect die callcount, \(expectedCount) is not equal to \(callCount)") }
if !statusEqual { fail("Incorrect exit status, \(expectedStatus) is not equal to \(exitStatus)") }
if !statusEqual { fail("Incorrect exit status, \(String(describing: expectedStatus)) is not equal to \(String(describing: exitStatus)))") }
}

func assertMessagePrinted(_ message: String, _ history: [String], file: StaticString = #file, line: UInt) {
Expand Down

0 comments on commit 8799b2a

Please sign in to comment.