@@ -242,6 +242,26 @@ class DeviceModelTests: XCTestCase {
242
242
XCTAssert ( deviceModel == . iPhone15ProMax , " DeviceModel - .iPhone15ProMax is failing " )
243
243
}
244
244
245
+ func testDeviceModelIPhone16( ) {
246
+ let deviceModel = DeviceModel ( identifier: Identifier ( " iPhone17,3 " ) )
247
+ XCTAssert ( deviceModel == . iPhone16, " DeviceModel - .iPhone16 is failing " )
248
+ }
249
+
250
+ func testDeviceModelIPhone16Plus( ) {
251
+ let deviceModel = DeviceModel ( identifier: Identifier ( " iPhone17,4 " ) )
252
+ XCTAssert ( deviceModel == . iPhone16Plus, " DeviceModel - .iPhone16Plus is failing " )
253
+ }
254
+
255
+ func testDeviceModelIPhone16Pro( ) {
256
+ let deviceModel = DeviceModel ( identifier: Identifier ( " iPhone17,1 " ) )
257
+ XCTAssert ( deviceModel == . iPhone16Pro, " DeviceModel - .iPhone16Pro is failing " )
258
+ }
259
+
260
+ func testDeviceModelIPhone16ProMax( ) {
261
+ let deviceModel = DeviceModel ( identifier: Identifier ( " iPhone17,2 " ) )
262
+ XCTAssert ( deviceModel == . iPhone16ProMax, " DeviceModel - .iPhone16ProMax is failing " )
263
+ }
264
+
245
265
// MARK: - iPad Device Model tests
246
266
247
267
func testDeviceModelIPadFirstGen( ) {
@@ -523,7 +543,8 @@ class DeviceModelTests: XCTestCase {
523
543
524
544
func testHasDynamicIsland( ) {
525
545
let withModels : [ DeviceModel ] = [ . iPhone14Pro, . iPhone14ProMax,
526
- . iPhone15, . iPhone15Plus, . iPhone15Pro, . iPhone15ProMax]
546
+ . iPhone15, . iPhone15Plus, . iPhone15Pro, . iPhone15ProMax,
547
+ . iPhone16, . iPhone16Plus, . iPhone16Pro, . iPhone16ProMax]
527
548
528
549
let withoutModels : [ DeviceModel ] = DeviceModel . allCases. filter ( { !withModels. contains ( $0) } )
529
550
0 commit comments