Skip to content

Commit

Permalink
missed this detail
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdez committed Aug 3, 2023
1 parent 2a4ba06 commit 798036b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion test/setup.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using UnfoldMakie
using Test
using CairoMakie
using GeometryBasics
using DataFrames
using UnfoldMakie
using TopoPlots
7 changes: 4 additions & 3 deletions test/test_plot_circulareegtopoplot.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include("setup.jl")

@testset "error cases and warns" begin

@testset "out of error bounds" begin
Expand All @@ -12,12 +14,11 @@

@testset "tooManyBoundsErr" begin
testdf = DataFrame(
effect = [[4.0,1.0],[4.0,3.0],[4.0,3.0]],
estimate = [[4.0,1.0],[4.0,3.0],[4.0,3.0]],
predictor = [70,80,90],
)

@test_throws ErrorException plot_circulareegtopoplot(testdf; extra=(;predictorBounds=[0,100,360]), positions = [Point(1.0,2.0), Point(1.0,2.0), Point(1.0,2.0)],
)
@test_throws ErrorException plot_circulareegtopoplot(testdf; extra=(;predictorBounds=[0,100,360]), positions = [Point(1.0,2.0), Point(1.0,2.0), Point(1.0,2.0)],)

end
end
Expand Down

0 comments on commit 798036b

Please sign in to comment.