From e0e672322233a35823cad7705812a6d4ecefcde3 Mon Sep 17 00:00:00 2001 From: Mathew Polzin Date: Fri, 2 Aug 2019 07:27:17 -0700 Subject: [PATCH] Make Xcode Beta happy by explicitly creating optionals where they used to be implied. --- Tests/JSONAPITests/Entity/EntityTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/JSONAPITests/Entity/EntityTests.swift b/Tests/JSONAPITests/Entity/EntityTests.swift index 7076358..5fe168f 100644 --- a/Tests/JSONAPITests/Entity/EntityTests.swift +++ b/Tests/JSONAPITests/Entity/EntityTests.swift @@ -29,8 +29,8 @@ class EntityTests: XCTestCase { let entity1 = TestEntity1(attributes: .none, relationships: .none, meta: .none, links: .none) let entity = TestEntity9(attributes: .none, relationships: .init(one: entity1.pointer, nullableOne: .init(resourceObject: entity1, meta: .none, links: .none), optionalOne: .init(resourceObject: entity1, meta: .none, links: .none), optionalNullableOne: nil, optionalMany: .init(resourceObjects: [entity1, entity1], meta: .none, links: .none)), meta: .none, links: .none) - XCTAssertEqual(entity ~> \.optionalOne, entity1.id) - XCTAssertEqual((entity ~> \.optionalOne).rawValue, entity1.id.rawValue) + XCTAssertEqual(entity ~> \.optionalOne, Optional(entity1.id)) + XCTAssertEqual((entity ~> \.optionalOne).rawValue, Optional(entity1.id.rawValue)) } func test_toMany_relationship_operator_access() {