Skip to content

Commit

Permalink
make gutters in test small enough to warn again
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel committed Oct 3, 2024
1 parent 7c3b832 commit b907141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ buffer = deepcopy(pixel_points)
f, a, p = beeswarm(rand(1:3, 300), randn(300); color = rand(RGBAf, 300), markersize = 20, algorithm = SimpleBeeswarm())
Makie.update_state_before_display!(f)
Makie.update_state_before_display!(f)
@test_warn "Gutter threshold exceeded" p.gutter = 0.5
@test_warn "Gutter threshold exceeded" p.gutter = 0.2
# Next, we test it in direction y
f, a, p = beeswarm(rand(1:3, 300), randn(300); direction = :x, color = rand(RGBAf, 300), markersize = 20, algorithm = SimpleBeeswarm())
Makie.update_state_before_display!(f)
Makie.update_state_before_display!(f)
@test_warn "Gutter threshold exceeded" p.gutter = 0.5
@test_warn "Gutter threshold exceeded" p.gutter = 0.2
# and it shouldn't warn if, when using a lower markersize, the gutter is not reached.
f, a, p = beeswarm(rand(1:3, 300), randn(300); direction = :y, color = rand(RGBAf, 300), markersize = 9, algorithm = SimpleBeeswarm())
Makie.update_state_before_display!(f)
Expand Down

0 comments on commit b907141

Please sign in to comment.