Skip to content

Commit

Permalink
improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszbaran committed Jan 1, 2025
1 parent b052267 commit 117bd78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/manifolds/invertible_matrices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ using LinearAlgebra, Manifolds, ManifoldsBase, Test, Random
@test is_vector(M, A, rand(M; vector_at=A))

@test get_coordinates(M, A, A, DefaultOrthonormalBasis()) == vec(A)
c = similar(vec(A))
get_coordinates!(M, c, A, A, DefaultOrthonormalBasis())
@test isapprox(c, vec(A))

@test get_vector(M, A, vec(A), DefaultOrthonormalBasis()) == A
D = similar(A)
get_vector!(M, D, A, vec(A), DefaultOrthonormalBasis())
@test isapprox(D, A)
end
@testset "Complex invertible matrices" begin
@test repr(Mc) == "InvertibleMatrices(3, ℂ)"
Expand Down

0 comments on commit 117bd78

Please sign in to comment.