Skip to content

Commit

Permalink
Two missing tests for intset (#18128)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt authored and tkelman committed Aug 19, 2016
1 parent 9fd79ef commit a08bfcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/intset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ data_out = collect(s)

# eltype, similar
@test is(eltype(IntSet()), Int64)
@test is(eltype(IntSet), Int64)
@test isequal(similar(IntSet([1,2,3])), IntSet())

# show
Expand All @@ -33,6 +34,8 @@ s = IntSet([1,2,10,20,200,300,1000,10000,10002])
@test !in(1,s)
@test !in(10002,s)
@test in(10000,s)
@test in(10000.0,s)
@test !in(10002.0,s)
@test_throws ArgumentError first(IntSet())
@test_throws ArgumentError last(IntSet())
t = copy(s)
Expand Down

0 comments on commit a08bfcd

Please sign in to comment.