@@ -109,48 +109,4 @@ include("test_util.jl")
109109 doctest (DynamicPPL; manual= false , doctestfilters= doctestfilters)
110110 end
111111 end
112-
113- @testset " compat" begin
114- include (joinpath (" compat" , " ad.jl" ))
115- end
116-
117- @testset " extensions" begin
118- include (" ext/DynamicPPLMCMCChainsExt.jl" )
119- include (" ext/DynamicPPLJETExt.jl" )
120- end
121-
122- @testset " ad" begin
123- include (" ext/DynamicPPLForwardDiffExt.jl" )
124- include (" ext/DynamicPPLMooncakeExt.jl" )
125- include (" ad.jl" )
126- end
127-
128- @testset " prob and logprob macro" begin
129- @test_throws ErrorException prob " ..."
130- @test_throws ErrorException logprob " ..."
131- end
132-
133- @testset " doctests" begin
134- DocMeta. setdocmeta! (
135- DynamicPPL, :DocTestSetup , :(using DynamicPPL, Distributions); recursive= true
136- )
137- doctestfilters = [
138- # Older versions will show "0 element Array" instead of "Type[]".
139- r" (Any\[\] |0-element Array{.+,[0-9]+})" ,
140- # Older versions will show "Array{...,1}" instead of "Vector{...}".
141- r" (Array{.+,\s ?1}|Vector{.+})" ,
142- # Older versions will show "Array{...,2}" instead of "Matrix{...}".
143- r" (Array{.+,\s ?2}|Matrix{.+})" ,
144- # Errors from macros sometimes result in `LoadError: LoadError:`
145- # rather than `LoadError:`, depending on Julia version.
146- r" ERROR: (LoadError:\s )+" ,
147- # Older versions do not have `;;]` but instead just `]` at end of the line
148- # => need to treat `;;]` and `]` as the same, i.e. ignore them if at the end of a line
149- r" (;;){0,1}\] $" m ,
150- # Ignore the source of a warning in the doctest output, since this is dependent on host.
151- # This is a line that starts with "└ @ " and ends with the line number.
152- r" └ @ .+:[0-9]+" ,
153- ]
154- doctest (DynamicPPL; manual= false , doctestfilters= doctestfilters)
155- end
156112end
0 commit comments