From 01906b5b140fc97df0cab36cd4cb519558bf05f1 Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Sat, 8 Sep 2018 17:28:24 -0500 Subject: [PATCH] Updated unit tests --- Tests/BluetoothTests/BluetoothUUIDTests.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/BluetoothTests/BluetoothUUIDTests.swift b/Tests/BluetoothTests/BluetoothUUIDTests.swift index 38ff3fc80..a7ae2546c 100644 --- a/Tests/BluetoothTests/BluetoothUUIDTests.swift +++ b/Tests/BluetoothTests/BluetoothUUIDTests.swift @@ -202,6 +202,8 @@ final class BluetoothUUIDTests: XCTestCase { func test16BitBaseUUID() { + XCTAssertNil(UInt16(bluetooth: UUID())) + let uuids: [UInt16: UUID] = [ 0x1800: UUID(rawValue: "00001800-0000-1000-8000-00805F9B34FB")!, 0x1801: UUID(rawValue: "00001801-0000-1000-8000-00805F9B34FB")!, @@ -216,6 +218,8 @@ final class BluetoothUUIDTests: XCTestCase { func test32BitBaseUUID() { + XCTAssertNil(UInt32(bluetooth: UUID())) + let uuids: [UInt32: UUID] = [ 0x00001800: UUID(rawValue: "00001800-0000-1000-8000-00805F9B34FB")!, 0x00001801: UUID(rawValue: "00001801-0000-1000-8000-00805F9B34FB")!,