Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Dec 24, 2023
1 parent 148260b commit c52f0a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
13 changes: 12 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
10 changes: 0 additions & 10 deletions test/statistical_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c52f0a0

Please sign in to comment.