Skip to content

Commit

Permalink
Fix a. few more errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Oct 17, 2023
1 parent d39ca6e commit b640264
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/groups/general_linear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ using NLsolve
@test_throws DomainError is_point(G, Float64[0 0 0; 0 1 1; 1 1 1]; error=:error)
@test is_point(G, Float64[0 0 1; 0 1 1; 1 1 1]; error=:error)
@test is_point(G, Identity(G); error=:error)
@test_throws ManifoldDomainError is_vector(
@test_throws DomainError is_vector(
G,
Float64[0 1 1; 0 1 1; 1 0 0],
randn(3, 3);
Expand Down Expand Up @@ -151,7 +151,7 @@ using NLsolve
Float64[0 0 0; 0 1 1; 1 1 1];
error=:error,
)
@test_throws ManifoldDomainError is_vector(
@test_throws DomainError is_vector(
G,
ComplexF64[im im; im im],
randn(ComplexF64, 2, 2);
Expand Down
6 changes: 3 additions & 3 deletions test/groups/general_unitary_groups.jl
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ include("group_utils.jl")
Xe = ones(2, 2)
X = project(SU2, q, Xe)
@test is_vector(SU2, q, X)
@test_throws ManifoldDomainError is_vector(SU2, p, X, true; error=:error) # base point wrong
@test_throws DomainError is_vector(SU2, p, X, true; error=:error) # base point wrong
@test_throws DomainError is_vector(SU2, q, Xe, true; error=:error) # Xe not skew hermitian
@test_throws DomainError is_vector(
SU2,
Identity(AdditionOperation()),
Xe,
true,
true,
true;
error = :error,
) # base point wrong
e = Identity(MultiplicationOperation())
@test_throws DomainError is_vector(SU2, e, Xe, true; error=:error) # Xe not skew hermitian
Expand Down
2 changes: 1 addition & 1 deletion test/manifolds/symmetric.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ include("../utils.jl")
@test_throws DomainError is_vector(M, B_sym, A; error=:error)
@test_throws DomainError is_vector(M, A, B_sym; error=:error)
@test_throws ManifoldDomainError is_vector(M, B_sym, D; error=:error)
@test_throws ManifoldDomainError is_vector(
@test_throws DomainError is_vector(
M,
B_sym,
1 * im * zero_vector(M, B_sym);
Expand Down

0 comments on commit b640264

Please sign in to comment.