Skip to content

Commit

Permalink
Split long lines to multiple lines
Browse files Browse the repository at this point in the history
jmp committed Feb 4, 2023
1 parent 82b1669 commit 9749ddd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Sources/AssertThat/Extensions/Sequence.swift
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 9749ddd

Please sign in to comment.