From 117bd7891716b56965629ba6d9cffd27eaa7c26d Mon Sep 17 00:00:00 2001 From: Mateusz Baran Date: Wed, 1 Jan 2025 22:26:32 +0100 Subject: [PATCH] improve coverage --- test/manifolds/invertible_matrices.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/manifolds/invertible_matrices.jl b/test/manifolds/invertible_matrices.jl index 0b71edc2f..0f6ff2c6c 100644 --- a/test/manifolds/invertible_matrices.jl +++ b/test/manifolds/invertible_matrices.jl @@ -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, ℂ)"