Skip to content

Commit 62a0f19

Browse files
authored
Remove duplicated tests (#753)
1 parent 3077a5e commit 62a0f19

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

test/runtests.jl

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -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
156112
end

0 commit comments

Comments
 (0)