Skip to content

Commit

Permalink
Updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Aug 15, 2018
1 parent fa27439 commit bb640f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tests/BluetoothTests/BluetoothTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ final class BluetoothTests: XCTestCase {
func testPOSIXError() {

XCTAssertEqual(POSIXError.fromErrno?.code.rawValue ?? 0, errno)

#if os(macOS)
XCTAssertEqual("\(POSIXError(code: .EBUSY))", "Resource busy")
#elseif os(Linux)
XCTAssertEqual("\(POSIXError(code: .EBUSY))", "Device or resource busy")
#endif
}

func testHCIVersion() {
Expand Down

0 comments on commit bb640f0

Please sign in to comment.