ADD: happy-path test for #3365

This commit is contained in:
Peter Gagarinov 2021-03-27 00:34:15 +03:00
parent 71fd38fe26
commit bb26bb0557

View File

@ -156,6 +156,7 @@ end
end end
@testset "NoFail" begin @testset "NoFail" begin
@testset "Plot" begin
plots = [histogram([1, 0, 0, 0, 0, 0]), plots = [histogram([1, 0, 0, 0, 0, 0]),
plot([missing]), plot([missing]),
plot([missing; 1:4]), plot([missing; 1:4]),
@ -168,6 +169,14 @@ end
@test_nowarn plot(x -> x^2, 0, 2) @test_nowarn plot(x -> x^2, 0, 2)
end 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 @testset "EmptyAnim" begin
anim = @animate for i in [] anim = @animate for i in []
end end