Skip to content

Commit b11255e

Browse files
authored
Merge pull request #350 from martinholters/remove_test_global
Remove unnecessary `global` declaration in IntSet test
2 parents 2f64978 + ce61974 commit b11255e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_int_set.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ s = IntSet(1:2:10)
121121
@test s === delete!(s, 1)
122122
for i in s; pop!(s, i); end
123123
@test isempty(s)
124-
global x = 0
125-
@test 1 == pop!(()->(global x; x+=1), s, 100)
124+
x = 0
125+
@test 1 == pop!(()->(x+=1), s, 100)
126126
@test x == 1
127127
push!(s, 100)
128128
@test pop!(()->throw(ErrorException()), s, 100) == 100

0 commit comments

Comments
 (0)