Skip to content

Commit aef0f13

Browse files
committed
Improve syntax
1 parent 33e8c64 commit aef0f13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

GLTableCollectionViewTests/GLTableCollectionViewTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ final class GLTableCollectionViewTests: XCTestCase {
7676
XCTAssertEqual(colorsDictionary.count, tableCollectionView.numberOfSections,
7777
"The number of keys in the colors dictionary must match the number of UITableView sections")
7878

79-
for colorSection: Int in 0..<tableCollectionView.numberOfSections {
79+
(0 ... tableCollectionView.numberOfSections - 1).forEach { colorSection in
8080
XCTAssertEqual(colorsDictionary[colorSection]!.count, tableCollectionView.numberOfCollectionItems,
81-
"The number of colors for section must match the number of UICollectionCells")
81+
"The number of colors for section must match the number of UICollectionCells")
8282
}
8383
}
8484

0 commit comments

Comments
 (0)