JuliaServices / AutoHashEquals.jl

A Julia macro to add == and hash() to composite types.
Other
57 stars 12 forks source link

Tests fail because hash(:F) != hash(:F, UInt(0)) #25

Closed gafter closed 1 year ago

gafter commented 1 year ago

The tests assume that hash(:F) is the same value as hash(:F, UInt(0)). That has not been the case since Julia added an optimization for the former:

hash(x::Symbol) = objectid(x)

Since the generated code uses the latter, the tests that verify the generated hash code should also use the former for comparison.

(Please assign this to me, or let me know if there is a new home for this macro)

gafter commented 1 year ago

Tests are now passing.