Skip to content

Commit

Permalink
Add test for issue JuliaServices#13
Browse files Browse the repository at this point in the history
type parameters should be a part of the hash
  • Loading branch information
goretkin committed Jul 30, 2021
1 parent e8f76ff commit 4e166e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ end
@test I(1, 2) == I(1, 2)
end

@auto_hash_equals struct Val2{T} end
@test hash(Val2{:one}()) != hash(Val2{:two}())

macro cond(test, block)
if eval(test)
block
Expand Down

0 comments on commit 4e166e4

Please sign in to comment.