Skip to content

Commit

Permalink
Update Tests.swift (#244)
Browse files Browse the repository at this point in the history
added iPhoneSE2 screenRatio and iPhoneSE ppi to tests
  • Loading branch information
a-elnajjar authored Jun 18, 2020
1 parent 446e3ab commit 33dacf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class DeviceKitTests: XCTestCase {
XCTAssertTrue(Device.iPhone7.screenRatio == (width: 9, height: 16))
XCTAssertTrue(Device.iPhone7Plus.screenRatio == (width: 9, height: 16))
XCTAssertTrue(Device.iPhoneSE.screenRatio == (width: 9, height: 16))
XCTAssertTrue(Device.iPhoneSE2.screenRatio == (width: 9, height: 16))
XCTAssertTrue(Device.iPhone8.screenRatio == (width: 9, height: 16))
XCTAssertTrue(Device.iPhone8Plus.screenRatio == (width: 9, height: 16))
XCTAssertTrue(Device.iPhoneX.screenRatio == (width: 9, height: 19.5))
Expand Down Expand Up @@ -309,6 +310,7 @@ class DeviceKitTests: XCTestCase {
assertEqualDeviceAndSimulator(device: Device.iPhone7, property: \Device.ppi, value: 326)
assertEqualDeviceAndSimulator(device: Device.iPhone7Plus, property: \Device.ppi, value: 401)
assertEqualDeviceAndSimulator(device: Device.iPhoneSE, property: \Device.ppi, value: 326)
assertEqualDeviceAndSimulator(device: Device.iPhoneSE2, property: \Device.ppi, value: 326)
assertEqualDeviceAndSimulator(device: Device.iPhone8, property: \Device.ppi, value: 326)
assertEqualDeviceAndSimulator(device: Device.iPhone8Plus, property: \Device.ppi, value: 401)
assertEqualDeviceAndSimulator(device: Device.iPhoneX, property: \Device.ppi, value: 458)
Expand Down

0 comments on commit 33dacf2

Please sign in to comment.