Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenpi committed Mar 11, 2025
1 parent 6a0fb6f commit 5ae8422
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,16 @@ end
# Make sure that on Julia versions that support the `public` keyword,
# we are also marking the right symbols as public.
if Base.isdefined(Base, :ispublic)
@testset "ispublic" begin
for name in public_symbols
@test Base.ispublic(JuliaHub, name)
end
for name in setdiff(names(JuliaHub; all=true), public_symbols)
@test !Base.ispublic(JuliaHub, name)
end
@testset "ispublic: $(name)" for name in public_symbols
@test Base.ispublic(JuliaHub, name)
end
private_names = setdiff(
names(JuliaHub; all=true),
public_symbols,
[:JuliaHub],
)
@testset "!ispublic: $(name)" for name in private_names
@test !Base.ispublic(JuliaHub, name)
end
end
end
Expand Down

0 comments on commit 5ae8422

Please sign in to comment.