Use XCTAssert instead of XCTAssertTrue
This commit is contained in:
parent
ae57042f36
commit
c18b70e7d7
4 changed files with 18 additions and 18 deletions
|
|
@ -35,7 +35,7 @@ class PasswordTest: XCTestCase {
|
|||
XCTAssertEqual(password.password, "")
|
||||
XCTAssertEqual(password.plainData, fileContent.data(using: .utf8))
|
||||
XCTAssertEqual(password.additionsPlainText, "")
|
||||
XCTAssertTrue(password.getFilteredAdditions().isEmpty)
|
||||
XCTAssert(password.getFilteredAdditions().isEmpty)
|
||||
XCTAssertEqual(password.numberOfUnknowns, 0)
|
||||
|
||||
XCTAssertNil(password.username)
|
||||
|
|
@ -224,7 +224,7 @@ class PasswordTest: XCTestCase {
|
|||
|
||||
XCTAssertEqual(password.password, fileContent)
|
||||
XCTAssertEqual(password.plainData, fileContent.data(using: .utf8))
|
||||
XCTAssertTrue(password.additionsPlainText.isEmpty)
|
||||
XCTAssert(password.additionsPlainText.isEmpty)
|
||||
XCTAssertEqual(password.numberOfUnknowns, 0)
|
||||
|
||||
XCTAssertEqual(password.numberOfOtpRelated, 0)
|
||||
|
|
@ -306,7 +306,7 @@ class PasswordTest: XCTestCase {
|
|||
let otpStrings = password.getOtpStrings()
|
||||
|
||||
XCTAssertNotNil(otpStrings)
|
||||
XCTAssertTrue(otpStrings!.description.hasPrefix("time-based (expires in"))
|
||||
XCTAssert(otpStrings!.description.hasPrefix("time-based (expires in"))
|
||||
}
|
||||
|
||||
func testOtpStringsHotpToken() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue