Skip to content

Commit

Permalink
Relax Vector to AbstractVector
Browse files Browse the repository at this point in the history
  • Loading branch information
wt committed Aug 27, 2020
1 parent 3c6a302 commit 3eab6af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function test_interface(
inputs=rand(5, 5), outputs=rand(1, 5),
)
predictions = test_common(template, inputs, outputs)
@test predictions isa Vector{<:ContinuousUnivariateDistribution}
@test predictions isa AbstractVector{<:ContinuousUnivariateDistribution}
@test length(predictions) == size(outputs, 2)
@test all(length.(predictions) .== size(outputs, 1))
end
Expand All @@ -168,7 +168,7 @@ function test_interface(
inputs=rand(5, 5), outputs=rand(3, 5)
)
predictions = test_common(template, inputs, outputs)
@test predictions isa Vector{<:ContinuousMultivariateDistribution}
@test predictions isa AbstractVector{<:ContinuousMultivariateDistribution}
@test length(predictions) == size(outputs, 2)
@test all(length.(predictions) .== size(outputs, 1))
end
Expand Down

0 comments on commit 3eab6af

Please sign in to comment.