Skip to content

Commit

Permalink
Match indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentneo committed Sep 14, 2023
1 parent a651a51 commit c9d5d67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/DeviceModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -487,16 +487,16 @@ class DeviceModelTests: XCTestCase {

// MARK: Notch test
func testHasNotch() {
let notchModels: [DeviceModel] = [.iPhoneX,
let notchModels: [DeviceModel] = [.iPhoneX,
.iPhoneXS, .iPhoneXSMax, .iPhoneXR,
.iPhone11, .iPhone11Pro, .iPhone11ProMax,
.iPhone12, .iPhone12Pro, .iPhone12ProMax, .iPhone12mini,
.iPhone13, .iPhone13mini, .iPhone13Pro, .iPhone13ProMax,
.iPhone14, .iPhone14Plus, .iPhone14Pro, .iPhone14ProMax]

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

notchModels.forEach { XCTAssertTrue($0.hasNotch) }
noNotchModels.forEach { XCTAssertFalse($0.hasNotch) }
notchModels.forEach { XCTAssertTrue($0.hasNotch) }
noNotchModels.forEach { XCTAssertFalse($0.hasNotch) }
}
}

0 comments on commit c9d5d67

Please sign in to comment.