Skip to content

Commit c1938bd

Browse files
authored
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.
1 parent 01ea380 commit c1938bd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/counts.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ end
1313

1414
@testset "counts() (contingency matrix)" begin
1515

16-
# StatsBase's counts() doesn't allow empty inputs
17-
@test_throws ArgumentError counts(Int[], Int[])
1816
# Clustering's counts()
1917
@test counts(SimpleCluRes(Int[]), Int[]) == Matrix{Int}(undef, 0, 0)
2018
@test_throws DimensionMismatch counts(SimpleCluRes([1]), Int[])

0 commit comments

Comments
 (0)