Skip to content

Commit

Permalink
Test for similar
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt committed Apr 7, 2016
1 parent a92c7ff commit bc8d57b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/sets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ s1 = similar(Set([1,"hello"]))
s2 = similar(Set{Float32}([2.0f0,3.0f0,4.0f0]))
@test isequal(s2, Set())
@test is(eltype(s2), Float32)
s3 = similar(Set([1,"hello"]),Float32)
@test isequal(s3, Set())
@test is(eltype(s3), Float32)

# show
@test sprint(show, Set()) == "Set{Any}()"
Expand Down

0 comments on commit bc8d57b

Please sign in to comment.