1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00

Correct bogus equality tests.

This commit is contained in:
Rob Rix 2015-09-28 09:54:44 -04:00
parent 1a44c5ee7a
commit 4a16b06e92

View File

@ -66,7 +66,7 @@ public func == <A: Equatable> (left: Vertex<A>, right: Vertex<A>) -> Bool {
case (.End, .End): case (.End, .End):
return true return true
case let (.XY(a, x1, y1), .XY(b, x2, y2)): case let (.XY(a, x1, y1), .XY(b, x2, y2)):
return a == b && x1.value == y1.value && x2.value == y2.value return a == b && x1.value == x2.value && y1.value == y2.value
default: default:
return false return false
} }