From c52f0a0e85b04d42e3e83a70a86475302e973d21 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Sun, 24 Dec 2023 11:59:01 +0100 Subject: [PATCH] update tests --- test/runtests.jl | 13 ++++++++++++- test/statistical_tests.jl | 10 ---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 929f8d4d473..01a6e924c62 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -10,7 +10,7 @@ using GeometryBasics: Pyramid using Makie: volume @testset "Unit tests" begin - @testset "#659 Volume errors if data is not a cube" begin + @testset "Volume errors if data is not a cube (#659)" begin fig, ax, vplot = volume(1:8, 1:8, 1:10, rand(8, 8, 10)) lims = Makie.data_limits(vplot) lo, hi = extrema(lims) @@ -34,9 +34,20 @@ using Makie: volume include("events.jl") include("text.jl") include("boundingboxes.jl") + # include("statistical_tests.jl") include("ray_casting.jl") include("PolarAxis.jl") include("barplot.jl") include("bezier.jl") include("hist.jl") + + @tetset "Hexbin singleton (#3357)" begin + # degenerate case with singleton 0 + hexbin([0, 0], [1, 2]) + hexbin([1, 2], [0, 0]) + + # degenerate case with singleton 1 + hexbin([1, 1], [1, 2]) + hexbin([1, 2], [1, 1]) + end end diff --git a/test/statistical_tests.jl b/test/statistical_tests.jl index 979d43c6a95..9e7e15f5ed4 100644 --- a/test/statistical_tests.jl +++ b/test/statistical_tests.jl @@ -295,13 +295,3 @@ end @test p2.plots[2][:color][] === :white @test p2.plots[2][:visible][] === :false end - -@tetset "hexbin" begin - # degenerate case with singleton 0 - hexbin([0, 0], [1, 2]) - hexbin([1, 2], [0, 0]) - - # degenerate case with singleton 1 - hexbin([1, 1], [1, 2]) - hexbin([1, 2], [1, 1]) -end