diff --git a/test/rank.jl b/test/rank.jl index d9e582f..b0c7c79 100644 --- a/test/rank.jl +++ b/test/rank.jl @@ -15,7 +15,9 @@ struct HardcodedRanks <: RankCheck r::Vector{Int} end -MultivariateMoments.rank_from_singular_values(σ, r::HardcodedRanks) = r.r[length(σ)] +function MultivariateMoments.rank_from_singular_values(σ, r::HardcodedRanks) + return r.r[length(σ)] +end @testset "Decreasing rank" begin r = RankDependence(zeros(4, 4), HardcodedRanks([1, 0, 1, 2]))