diff --git a/test/test_canonical.jl b/test/test_canonical.jl index cb4c81c..ce98f48 100644 --- a/test/test_canonical.jl +++ b/test/test_canonical.jl @@ -1,3 +1,8 @@ + +struct MyDomain{T} <: Domain{T} + somefield::T +end + @testset "canonical domains" begin d1 = 2..3.0 @@ -77,4 +82,9 @@ @test mapfrom_canonical(ctype, d, 2.5) == 2.5 @test mapto_canonical(ctype, d, 2.5) == 2.5 end + + @testset "domainhash" begin + mydomain = MyDomain(2.0) + @test hash(mydomain) == DomainSets.domainhash(mydomain) + end end