Skip to content

Commit

Permalink
Merge pull request #137 from nhz2/master
Browse files Browse the repository at this point in the history
Improve deepcopy test coverage
  • Loading branch information
andyferris authored Feb 26, 2024
2 parents 27b59aa + 52effa3 commit af1f512
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Dictionary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -401,5 +401,10 @@
local d = Dictionary(1:4, 1:4)
delete!(d, 2)
@test d == deepcopy(d)

local k = keys(d)
local d_key_copy = deepcopy((k, d, k));
@test keys(d_key_copy[2]) == d_key_copy[1]
@test d_key_copy[1] === d_key_copy[3]
end
end

0 comments on commit af1f512

Please sign in to comment.