Skip to content

Commit 2a41652

Browse files
committed
Change to === since Graph and Subgraph does not synthesize Equatable on non-Darwin platform
1 parent c2ea28d commit 2a41652

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/OpenAttributeGraphCompatibilityTests/Graph/SubgraphCompatibilityTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ struct SubgraphCompatibilityTests {
9090
#expect(subgraph.childCount == 1)
9191
#expect(subgraph.isAncestor(of: child) == true)
9292

93-
#expect(subgraph.child(at: 0, tag: nil) == child)
94-
93+
#expect(subgraph.child(at: 0, tag: nil) === child)
94+
9595
#expect(child.parentCount == 1)
96-
#expect(child.parent(at: 0) == subgraph)
97-
96+
#expect(child.parent(at: 0) === subgraph)
97+
9898
#expect(1 == 2)
9999
}
100100

@@ -109,11 +109,11 @@ struct SubgraphCompatibilityTests {
109109
#expect(subgraph.isAncestor(of: child) == true)
110110

111111
var tag = 0
112-
#expect(subgraph.child(at: 0, tag: &tag) == child)
112+
#expect(subgraph.child(at: 0, tag: &tag) === child)
113113
#expect(tag == 1)
114114

115115
#expect(child.parentCount == 1)
116-
#expect(child.parent(at: 0) == subgraph)
116+
#expect(child.parent(at: 0) === subgraph)
117117
}
118118

119119
@Test

0 commit comments

Comments
 (0)