From 8799b2a49e1733366534f365da7e97313aa4dd40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Silvan=20Da=CC=88hn?= Date: Mon, 3 Apr 2017 10:28:02 +0200 Subject: [PATCH] Fix warnings in tests --- .../xcschemes/xcschememanagement.plist | 5 +++++ DieTests/DieTests.swift | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Die.xcodeproj/xcuserdata/silvandaehn.xcuserdatad/xcschemes/xcschememanagement.plist b/Die.xcodeproj/xcuserdata/silvandaehn.xcuserdatad/xcschemes/xcschememanagement.plist index 2946c69..9c5f83f 100644 --- a/Die.xcodeproj/xcuserdata/silvandaehn.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/Die.xcodeproj/xcuserdata/silvandaehn.xcuserdatad/xcschemes/xcschememanagement.plist @@ -12,6 +12,11 @@ SuppressBuildableAutocreation + AFA1D9FD1C90B4F600C65B90 + + primary + + BF0D678B1C8DCD25007CE00F primary diff --git a/DieTests/DieTests.swift b/DieTests/DieTests.swift index 31f9964..e1bb84b 100644 --- a/DieTests/DieTests.swift +++ b/DieTests/DieTests.swift @@ -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) {