Skip to content

Commit 5ae8422

Browse files
committed
fix tests
1 parent 6a0fb6f commit 5ae8422

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

test/runtests.jl

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,16 @@ end
214214
# Make sure that on Julia versions that support the `public` keyword,
215215
# we are also marking the right symbols as public.
216216
if Base.isdefined(Base, :ispublic)
217-
@testset "ispublic" begin
218-
for name in public_symbols
219-
@test Base.ispublic(JuliaHub, name)
220-
end
221-
for name in setdiff(names(JuliaHub; all=true), public_symbols)
222-
@test !Base.ispublic(JuliaHub, name)
223-
end
217+
@testset "ispublic: $(name)" for name in public_symbols
218+
@test Base.ispublic(JuliaHub, name)
219+
end
220+
private_names = setdiff(
221+
names(JuliaHub; all=true),
222+
public_symbols,
223+
[:JuliaHub],
224+
)
225+
@testset "!ispublic: $(name)" for name in private_names
226+
@test !Base.ispublic(JuliaHub, name)
224227
end
225228
end
226229
end

0 commit comments

Comments
 (0)