Issue with `HashSet` Comparison in `@effect/vitest`

It seems like the comparison for HasSet in @effect/vitest isn't working correctly — am I using it wrong? Or maybe there are some limitations?
it("hashSet", () => {
  const hsa = HashSet.make(Coords.Init(0, 0), Coords.Init(1, 1))
  const hsb = HashSet.make(Coords.Init(1, 1), Coords.Init(0, 0))

  expect(Equal.isEqual(hsa)).toBe(true)
  expect(Equal.isEqual(hsb)).toBe(true)
  expect(Equal.equals(hsa, hsb)).toBe(true)

  expect(hsa).toEqual(hsb) // Error here
})

export class Coords extends Data.Class<{
  x: number
  y: number
}> {
  static Init = (x: number, y: number) => new Coords({ x, y })
}
Was this page helpful?