Merge pull request #3385 from pgagarinov/master

ADD: happy-path test for #3365
This commit is contained in:
Daniel Schwabeneder 2021-03-28 20:04:36 +02:00 committed by GitHub
commit 60c59a4be0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,7 @@ end
end
@testset "NoFail" begin
@testset "Plot" begin
plots = [histogram([1, 0, 0, 0, 0, 0]),
plot([missing]),
plot([missing; 1:4]),
@ -168,6 +169,14 @@ end
@test_nowarn plot(x -> x^2, 0, 2)
end
@testset "Bar" begin
p = bar([3,2,1], [1,2,3]);
@test isa(p, Plots.Plot)
@test isa(display(p), Nothing) == true
end
end
@testset "EmptyAnim" begin
anim = @animate for i in []
end