From b907141a4c1f52e59586bade089f54a121acb467 Mon Sep 17 00:00:00 2001 From: Julius Krumbiegel Date: Thu, 3 Oct 2024 18:01:27 +0200 Subject: [PATCH] make gutters in test small enough to warn again --- test/runtests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 5cb9247..99e813c 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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)