this time for real

This commit is contained in:
Simon Christ 2022-03-11 15:31:29 +01:00
parent de829309ef
commit e0158e5247

View File

@ -1,8 +1,8 @@
using Plots, Test using Plots, Test
@testset "Series Attributes" begin @testset "Series Attributes" begin
pl = plot([1, 2, 3], lw = 5) pl = plot([[1, 2, 3], [2, 3, 4]], lw = 5)
@test hline!(pl, [1.75]).series_list == hline!(pl, [1.75], z_order = :front).series_list @test hline!(deepcopy(pl), [1.75])[1].series_list[3][:label] == hline!(deepcopy(pl), [1.75], z_order = :front)[1].series_list[3][:label] == "y3"
@test hline!(pl, [1.75], z_order = :back)[1].series_list[1][:label] == "y3" @test hline!(deepcopy(pl), [1.75], z_order = :back)[1].series_list[1][:label] == "y3"
@test hline!(pl, [1.75], z_order = 2)[1].series_list[2][:label] == "y3" @test hline!(deepcopy(pl), [1.75], z_order = 2)[1].series_list[2][:label] == "y3"
end end