diff --git a/PredicateKit/Predicate.swift b/PredicateKit/Predicate.swift index 204f4d9..6b061c1 100644 --- a/PredicateKit/Predicate.swift +++ b/PredicateKit/Predicate.swift @@ -378,7 +378,7 @@ public func == (lhs: E, rhs: T) -> Pre .comparison(.init(lhs, .equal, rhs)) } -@available(iOS 13.0, *) +@available(iOS 13.0, watchOS 6.0, tvOS 13.0, *) public func == (lhs: E, rhs: T) -> Predicate where E.Value == T, T.ID: Primitive { .comparison(.init(ObjectIdentifier(root: lhs), .equal, rhs.id)) } diff --git a/PredicateKitTests/CoreDataTests/NSFetchRequestBuilderTests.swift b/PredicateKitTests/CoreDataTests/NSFetchRequestBuilderTests.swift index 9a95f7d..2f76443 100644 --- a/PredicateKitTests/CoreDataTests/NSFetchRequestBuilderTests.swift +++ b/PredicateKitTests/CoreDataTests/NSFetchRequestBuilderTests.swift @@ -87,7 +87,7 @@ final class NSFetchRequestBuilderTests: XCTestCase { XCTAssertEqual(comparison.comparisonPredicateModifier, .direct) } - @available(iOS 13.0, *) + @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *) func testEqualityWithIdentifiable() throws { guard let identifiable = makeIdentifiable() else { XCTFail("could not initialize IdentifiableData") diff --git a/PredicateKitTests/CoreDataTests/NSManagedObjectContextExtensionsTests.swift b/PredicateKitTests/CoreDataTests/NSManagedObjectContextExtensionsTests.swift index 9881008..e8e1131 100644 --- a/PredicateKitTests/CoreDataTests/NSManagedObjectContextExtensionsTests.swift +++ b/PredicateKitTests/CoreDataTests/NSManagedObjectContextExtensionsTests.swift @@ -116,7 +116,7 @@ final class NSManagedObjectContextExtensionsTests: XCTestCase { XCTAssertNil(texts.first?["creationDate"]) } - @available(iOS 13.0, *) + @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *) func testFetchWithObjectComparison() throws { let attachment1 = try container.viewContext.insertAttachment("1") let attachment2 = try container.viewContext.insertAttachment("2") diff --git a/PredicateKitTests/OperatorTests.swift b/PredicateKitTests/OperatorTests.swift index 6446f3b..b1cae69 100644 --- a/PredicateKitTests/OperatorTests.swift +++ b/PredicateKitTests/OperatorTests.swift @@ -236,7 +236,7 @@ final class OperatorTests: XCTestCase { XCTAssertEqual(value, 42) } - @available(iOS 13.0, *) + @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *) func testKeyPathEqualIdentifiable() throws { struct Data { let identifiable: IdentifiableData