From c8d37bf80010e7abf64499ba3ba09940b33f5f22 Mon Sep 17 00:00:00 2001 From: Aaron Kaw Date: Sat, 27 Jan 2024 19:55:06 +1100 Subject: [PATCH] Added tests for ribbon plot recipe (#109) --- test/plots.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/plots.jl b/test/plots.jl index a23a1f26..c42b6df6 100644 --- a/test/plots.jl +++ b/test/plots.jl @@ -25,3 +25,11 @@ rec = RecipesBase.apply_recipe(Dict{Symbol, Any}(), x, value.(y)) rec = RecipesBase.apply_recipe(Dict{Symbol, Any}(), value.(x), y) @test getfield(rec[1], 1) == Dict{Symbol, Any}(:yerror => uncertainty.(y)) @test rec[1].args == (value.(x), value.(y)) + +rec = RecipesBase.apply_recipe(Dict{Symbol, Any}(), value.(y); uncertainty_plot = :ribbon) +@test getfield(rec[1], 1) == Dict{Symbol, Any}(:ribbon => uncertainty.(y)) +@test rec[1].args == (value.(x), value.(y)) + +rec = RecipesBase.apply_recipe(Dict{Symbol, Any}(), x, value.(y); uncertainty_plot = :ribbon) +@test getfield(rec[1], 1) == Dict{Symbol, Any}(:ribbon => uncertainty.(y)) +@test rec[1].args == (value.(x), value.(y))