Skip to content

Commit ecc8bb7

Browse files
committed
add tests
1 parent 3852842 commit ecc8bb7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/factorizations/projections.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ for V in spacelist
4848
@test !isantihermitian(ta_approx)
4949
@test isantihermitian(ta_approx; atol = 10 * noisefactor) || (T <: Real && t isa DiagonalTensorMap)
5050
end
51+
52+
@test_throws SpaceMismatch project_hermitian(rand(V1, V1^2))
53+
@test_throws SpaceMismatch project_antihermitian(rand(V1, V1^2))
54+
if V1 != V1'
55+
@test_throws SpaceMismatch project_hermitian(rand(V1, V1'))
56+
@test_throws SpaceMismatch project_antihermitian(rand(V1, V1'))
57+
end
5158
end
5259

5360
@testset "Isometric projections" begin

0 commit comments

Comments
 (0)