Skip to content

Commit 5db3bbd

Browse files
committed
fix tests
1 parent 21726da commit 5db3bbd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/numerical_irreducible_decomposition.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ function ncomponents(
11531153
end
11541154
ncomponents(N::NumericalIrreducibleDecomposition, dim::Int) = ncomponents(N; dims = [dim])
11551155
n_components(N; dims = nothing) = ncomponents(N; dims = dims)
1156-
1156+
n_components(N, dim) = ncomponents(N; dims = [dim])
11571157

11581158
"""
11591159

test/nid_test.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
@test ncomponents(N3, dims = [1, 2]) == 3
6060
@test ncomponents(N3, 1) == 2
6161
@test n_components(N3) == 4
62+
@test n_components(N3, dims = [1, 2]) == 3
6263
@test n_components(N3, 1) == 2
6364
end
6465

0 commit comments

Comments
 (0)