File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11name = " ComponentArrays"
22uuid = " b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
33authors = [" Jonnie Diegelman <47193959+jonniedie@users.noreply.github.com>" ]
4- version = " 0.9.3 "
4+ version = " 0.9.4 "
55
66[deps ]
77ArrayInterface = " 4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Original file line number Diff line number Diff line change @@ -284,6 +284,8 @@ Base.propertynames(x::ComponentVector) = propertynames(indexmap(getaxes(x)[1]))
284284
285285Base. keys (x:: ComponentVector ) = keys (indexmap (getaxes (x)[1 ]))
286286
287+ Base. hash (x:: ComponentArray , h:: UInt ) = hash (getdata (x), h)
288+
287289"""
288290 valkeys(x::ComponentVector)
289291
Original file line number Diff line number Diff line change 107107
108108 @test keys (ca) == (:a , :b , :c )
109109 @test valkeys (ca) == Val .((:a , :b , :c ))
110+
111+ @test ca == getdata (ca)
112+ @test hash (ca) == hash (getdata (ca))
113+ @test hash (ca, zero (UInt)) == hash (getdata (ca), zero (UInt))
110114end
111115
112116@testset " Get" begin
You can’t perform that action at this time.
0 commit comments