From c1938bdcbcbbc4d6d678b34d33423b1dd262d841 Mon Sep 17 00:00:00 2001 From: Alex Arslan Date: Thu, 8 Sep 2022 15:24:34 -0700 Subject: [PATCH] Remove test for a method from StatsBase (#233) The code is testing that `counts` with two empty input arrays produces an `ArgumentError`, which is failing because it actually produces a `MethodError` from a Base function deeper in the call stack. The method in question here is defined in StatsBase, not in this package, so it's unclear why this package is testing it to begin with. --- test/counts.jl | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/counts.jl b/test/counts.jl index 5fe9864b..217f355b 100644 --- a/test/counts.jl +++ b/test/counts.jl @@ -13,8 +13,6 @@ end @testset "counts() (contingency matrix)" begin -# StatsBase's counts() doesn't allow empty inputs -@test_throws ArgumentError counts(Int[], Int[]) # Clustering's counts() @test counts(SimpleCluRes(Int[]), Int[]) == Matrix{Int}(undef, 0, 0) @test_throws DimensionMismatch counts(SimpleCluRes([1]), Int[])