Skip to content

Commit

Permalink
Merge pull request #350 from martinholters/remove_test_global
Browse files Browse the repository at this point in the history
Remove unnecessary `global` declaration in IntSet test
  • Loading branch information
kmsquire authored Dec 10, 2017
2 parents 2f64978 + ce61974 commit b11255e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_int_set.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ s = IntSet(1:2:10)
@test s === delete!(s, 1)
for i in s; pop!(s, i); end
@test isempty(s)
global x = 0
@test 1 == pop!(()->(global x; x+=1), s, 100)
x = 0
@test 1 == pop!(()->(x+=1), s, 100)
@test x == 1
push!(s, 100)
@test pop!(()->throw(ErrorException()), s, 100) == 100
Expand Down

0 comments on commit b11255e

Please sign in to comment.