Enable SwiftLint rule 'trailing_closure' and fix all violations
This commit is contained in:
parent
937019d6e8
commit
0317f5a83b
5 changed files with 6 additions and 6 deletions
|
|
@ -70,7 +70,7 @@ class PasswordGeneratorTest: XCTestCase {
|
|||
PasswordGenerator(flavor: .xkcd, length: 8, useSpecialSymbols: false),
|
||||
PasswordGenerator(flavor: .xkcd, length: 1, useSpecialSymbols: false),
|
||||
].forEach { generator in
|
||||
XCTAssertEqual(generator.generate().split(whereSeparator: { "0123456789".contains($0) }).count, generator.limitedLength)
|
||||
XCTAssertEqual(generator.generate().split { "0123456789".contains($0) }.count, generator.limitedLength)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue