Skip to content

Commit

Permalink
Add test empty!(::Stack)
Browse files Browse the repository at this point in the history
  • Loading branch information
smldis authored May 8, 2018
1 parent 146d556 commit 3112ac8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_stack_and_queue.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
@test isempty(s) == (i == n)
@test length(s) == n - i
end

s = Stack(Int,1)
push!(s, 10)
@test length(empty!(s)) == 0

#test that iter returns a LIFO collection

Expand Down

0 comments on commit 3112ac8

Please sign in to comment.