Fix formatting

This commit is contained in:
Vincent Esche 2019-08-06 19:26:46 +02:00
parent 66faf493f5
commit b3a75fa6d3
2 changed files with 17 additions and 21 deletions

View File

@ -210,12 +210,10 @@ extension Matrix: Sequence {
extension Matrix: Collection {
public subscript(_ row: Int) -> ArraySlice<Scalar> {
get {
let startIndex = row * columns
let endIndex = startIndex + columns
return self.grid[startIndex..<endIndex]
}
}
public var startIndex: Int {
return 0

View File

@ -42,8 +42,7 @@ func XCTAssertEqual<T, U>(
file: StaticString = #file,
line: UInt = #line
) -> Bool
where T: Collection, T.Element == U, U: FloatingPoint
{
where T: Collection, T.Element == U, U: FloatingPoint {
let (actualValues, expectedValues): (T, T)
do {
@ -96,8 +95,7 @@ func XCTAssertEqual<T, U, V>(
file: StaticString = #file,
line: UInt = #line
) -> Bool
where T: Collection, U: Collection, T.Element == U, U.Element == V, V: FloatingPoint
{
where T: Collection, U: Collection, T.Element == U, U.Element == V, V: FloatingPoint {
let (actualValues, expectedValues): (T, T)
do {