DynamicQuantities.jl icon indicating copy to clipboard operation
DynamicQuantities.jl copied to clipboard

unexpected behavior with Set?

Open maxasauruswall opened this issue 1 year ago • 7 comments

Hi All,

Thanks for the great package!

I'm not sure if this behavior is expected, but it surprised me, so I thought I'd ask.

s = Set()
push!(s, 1us"day") # -> Set with 1 element
push!(s, 1us"day") # -> Set with 2 elements

I would have expected the set to only to have 1 element, because:

isequal(1us"day", 1us"day") # -> true

Am I mistaken in my intuition here?

Thanks for your time and work. Cheers, Max

maxasauruswall avatar Jun 07 '24 19:06 maxasauruswall