diff --git a/Sources/AssertThat/Extensions/Sequence.swift b/Sources/AssertThat/Extensions/Sequence.swift index 7b6cc0c..9ed0f98 100644 --- a/Sources/AssertThat/Extensions/Sequence.swift +++ b/Sources/AssertThat/Extensions/Sequence.swift @@ -14,7 +14,12 @@ public extension Assertion where Subject: Sequence, Subject.Element: Equatable { @discardableResult func doesNotStartWith(_ prefix: Subject, file: StaticString = #filePath, line: UInt = #line) -> Self { - XCTAssertFalse(subject.starts(with: prefix), "\"\(subject)\" starts with \"\(prefix)\"", file: file, line: line) + XCTAssertFalse( + subject.starts(with: prefix), + "\"\(subject)\" starts with \"\(prefix)\"", + file: file, + line: line + ) return self } @@ -31,7 +36,12 @@ public extension Assertion where Subject: Sequence, Subject.Element: Equatable { @discardableResult func doesNotEndWith(_ suffix: Subject, file: StaticString = #filePath, line: UInt = #line) -> Self { - XCTAssertFalse(subject.reversed().starts(with: suffix.reversed()), "\"\(subject)\" ends with \"\(suffix)\"", file: file, line: line) + XCTAssertFalse( + subject.reversed().starts(with: suffix.reversed()), + "\"\(subject)\" ends with \"\(suffix)\"", + file: file, + line: line + ) return self }