Skip to content

Commit 90347b1

Browse files
CopilotZandor300
andcommitted
Add test for Apple Watch SE 3rd generation device mapping
Co-authored-by: Zandor300 <6069593+Zandor300@users.noreply.github.com>
1 parent 389bf3a commit 90347b1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/Tests.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,14 @@ class DeviceKitTests: XCTestCase {
723723
XCTAssertEqual(Device.mapToDevice(identifier: "AppleTV6,2").description, "Apple TV 4K")
724724
}
725725

726+
func testAppleWatchSE3Mapping() {
727+
// Test Apple Watch SE 3rd generation identifier mapping
728+
XCTAssertEqual(Device.mapToDevice(identifier: "Watch7,13"), .appleWatchSE3_40mm)
729+
XCTAssertEqual(Device.mapToDevice(identifier: "Watch7,14"), .appleWatchSE3_40mm)
730+
XCTAssertEqual(Device.mapToDevice(identifier: "Watch7,15"), .appleWatchSE3_44mm)
731+
XCTAssertEqual(Device.mapToDevice(identifier: "Watch7,16"), .appleWatchSE3_44mm)
732+
}
733+
726734
func testSafeDescription() {
727735
for device in Device.allRealDevices {
728736
XCTAssertEqual(device.description, device.safeDescription)

0 commit comments

Comments
 (0)