Skip to content

Commit

Permalink
Tweak permutecomps test to increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dahong67 committed Aug 22, 2024
1 parent 51834fc commit 357fc8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/items/cpd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ end

@testset "perm=$perm" for perm in permutations(1:K)
Mback = deepcopy(M)
Mperm = permutecomps(M, perm)
Mperm = permutecomps(M, Tuple(perm))

# Check for mutation
@test M.λ == Mback.λ
Expand All @@ -294,7 +294,7 @@ end
@test all(k -> Mperm.U[k] == M.U[k][:, perm], 1:ndims(Mperm))

# Check in-place version
permutecomps!(M, perm)
permutecomps!(M, Tuple(perm))
@test M.λ == Mperm.λ
@test M.U == Mperm.U
end
Expand Down

0 comments on commit 357fc8d

Please sign in to comment.