Skip to content

Commit e026838

Browse files
committed
update test for iPhone 16e
1 parent 9f14788 commit e026838

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Tests/DeviceModelTests.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@ class DeviceModelTests: XCTestCase {
262262
XCTAssert(deviceModel == .iPhone16ProMax, "DeviceModel - .iPhone16ProMax is failing")
263263
}
264264

265+
func testDeviceModelIPhone16e() {
266+
let deviceModel = DeviceModel(identifier: Identifier("iPhone17,5"))
267+
XCTAssert(deviceModel == .iPhone16e, "DeviceModel - .iPhone16e is failing")
268+
}
269+
265270
// MARK: - iPad Device Model tests
266271

267272
func testDeviceModelIPadFirstGen() {
@@ -531,7 +536,8 @@ class DeviceModelTests: XCTestCase {
531536
.iPhone11, .iPhone11Pro, .iPhone11ProMax,
532537
.iPhone12, .iPhone12Pro, .iPhone12ProMax, .iPhone12mini,
533538
.iPhone13, .iPhone13mini, .iPhone13Pro, .iPhone13ProMax,
534-
.iPhone14, .iPhone14Plus]
539+
.iPhone14, .iPhone14Plus,
540+
.iPhone16e]
535541

536542
let noNotchModels: [DeviceModel] = DeviceModel.allCases.filter( { !notchModels.contains($0) })
537543

0 commit comments

Comments
 (0)