File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed
Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 11name = " LogDensityProblems"
22uuid = " 6fdf6af0-433a-55f7-b3ed-c6c6e0b8df7c"
33authors = [
" Tamas K. Papp <[email protected] >" ]
4- version = " 2.1.2 "
4+ version = " 2.2.0 "
55
66[deps ]
77ArgCheck = " dce04be8-c92d-5529-be00-80e4d2c0e197"
Original file line number Diff line number Diff line change @@ -16,6 +16,21 @@ using ArgCheck: @argcheck
1616using DocStringExtensions: SIGNATURES, TYPEDEF
1717using Random: AbstractRNG, default_rng
1818
19+ # https://github.com/JuliaLang/julia/pull/50105
20+ @static if VERSION >= v " 1.11.0-DEV.469"
21+ eval (
22+ Expr (
23+ :public ,
24+ :capabilities ,
25+ :LogDensityOrder ,
26+ :dimension ,
27+ :logdensity ,
28+ :logdensity_and_gradient ,
29+ :logdensity_gradient_and_hessian ,
30+ )
31+ )
32+ end
33+
1934# ###
2035# ### interface for problems
2136# ###
Original file line number Diff line number Diff line change 9090 @test 50 ≤ length (failures) ≤ 100
9191 @test all (x -> all (x .< 0 ), failures)
9292end
93+
94+ # ###
95+ # ### public API
96+ # ###
97+
98+ @testset " public API" begin
99+ if isdefined (Base, :ispublic )
100+ @test Base. ispublic (LogDensityProblems, :capabilities )
101+ @test Base. ispublic (LogDensityProblems, :LogDensityOrder )
102+ @test Base. ispublic (LogDensityProblems, :dimension )
103+ @test Base. ispublic (LogDensityProblems, :logdensity )
104+ @test Base. ispublic (LogDensityProblems, :logdensity_and_gradient )
105+ @test Base. ispublic (LogDensityProblems, :logdensity_gradient_and_hessian )
106+ end
107+ end
You can’t perform that action at this time.
0 commit comments