From f76e7d3fe4265ee09216044ec3780d74f546ca82 Mon Sep 17 00:00:00 2001 From: stephencelis Date: Fri, 8 Oct 2021 19:40:19 +0000 Subject: [PATCH] Run swift-format --- .../IdentifiedArrayTests.swift | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Tests/IdentifiedCollectionsTests/IdentifiedArrayTests.swift b/Tests/IdentifiedCollectionsTests/IdentifiedArrayTests.swift index cb7c331..9f75063 100644 --- a/Tests/IdentifiedCollectionsTests/IdentifiedArrayTests.swift +++ b/Tests/IdentifiedCollectionsTests/IdentifiedArrayTests.swift @@ -231,40 +231,40 @@ final class IdentifiedArrayTests: XCTestCase { } func testEquatable() { struct Foo: Identifiable, Equatable { - var id: String = "id" - var value: String = "value" + var id: String = "id" + var value: String = "value" } // Create arrays using all of the initializers var arrays: [IdentifiedArray] = [ - IdentifiedArray(), - IdentifiedArray(uncheckedUniqueElements: [], id: \.id), - IdentifiedArray(uniqueElements: [], id: \.id), - IdentifiedArray(uncheckedUniqueElements: []), - IdentifiedArray(uniqueElements: []) + IdentifiedArray(), + IdentifiedArray(uncheckedUniqueElements: [], id: \.id), + IdentifiedArray(uniqueElements: [], id: \.id), + IdentifiedArray(uncheckedUniqueElements: []), + IdentifiedArray(uniqueElements: []), ] arrays.forEach({ lhs in - arrays.forEach({ rhs in - XCTAssertEqual(lhs, rhs) - }) + arrays.forEach({ rhs in + XCTAssertEqual(lhs, rhs) + }) }) // add an element to each array arrays.indices.forEach({ - arrays[$0].append(Foo()) + arrays[$0].append(Foo()) }) arrays.forEach({ lhs in - arrays.forEach({ rhs in - XCTAssertEqual(lhs, rhs) - }) + arrays.forEach({ rhs in + XCTAssertEqual(lhs, rhs) + }) }) // modify all arrays arrays.indices.forEach({ - arrays[$0].append(Foo(id: "id2", value: "\($0)")) + arrays[$0].append(Foo(id: "id2", value: "\($0)")) }) arrays.enumerated().forEach({ lhsIndex, lhs in - arrays.enumerated().forEach({ rhsIndex, rhs in - guard rhsIndex != lhsIndex else { return } - XCTAssertNotEqual(lhs, rhs) - }) + arrays.enumerated().forEach({ rhsIndex, rhs in + guard rhsIndex != lhsIndex else { return } + XCTAssertNotEqual(lhs, rhs) + }) }) } }