Skip to content

Commit

Permalink
Added tests for ribbon plot recipe (JuliaPhysics#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
kapple19 committed Jan 27, 2024
1 parent 818b055 commit c8d37bf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit c8d37bf

Please sign in to comment.