Skip to content

Commit

Permalink
add some tests for issubset on Dict
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet committed Aug 20, 2019
1 parent 1a93c13 commit f3f3628
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/sets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,17 @@ end
@test !any(Base.hasfastin, Any[[1, 2, 3], "123",
Array, String])

# tests for Dict
d1 = Dict(1=>nothing, 2=>nothing)
d2 = Dict(1=>nothing, 3=>nothing)
d3 = Dict(1=>nothing, 2=>nothing, 3=>nothing)
@test d3 == merge(d1, d2)
@test !issubset(d1, d2)
@test !issubset(d2, d1)
@test !issubset(d3, d1)
@test !issubset(d3, d2)
@test issubset(d1, d3)
@test issubset(d2, d3)
end

@testset "unique" begin
Expand Down

0 comments on commit f3f3628

Please sign in to comment.