Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszbaran committed Aug 29, 2024
1 parent cc691d7 commit dad99bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/groups/groups_general.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using Manifolds:
@test !has_biinvariant_metric(NotImplementedManifold())
@test !has_invariant_metric(NotImplementedManifold(), LeftForwardAction())
@test is_identity(G, eg) # identity transparent
@test_throws MethodError identity_element(G) # but for a NotImplOp there is no concrete id.
@test_throws ErrorException identity_element(G) # but for a NotImplOp there is no concrete id.
@test isapprox(G, eg, eg)
@test !isapprox(G, Identity(AdditionOperation()), eg)
@test !isapprox(G, Identity(AdditionOperation()), eg)
Expand All @@ -38,7 +38,7 @@ using Manifolds:
)
@test_throws DomainError is_point(G, Identity(AdditionOperation()); error=:error)
@test is_point(G, eg)
@test_throws MethodError is_identity(G, 1) # same error as before i.e. dispatch isapprox works
@test_throws ErrorException is_identity(G, 1) # same error as before i.e. dispatch isapprox works
@test Manifolds.check_size(G, eg) === nothing
@test Manifolds.check_size(
Manifolds.EmptyTrait(),
Expand All @@ -54,7 +54,7 @@ using Manifolds:
error=:error,
)
# identity_element for G not implemented
@test_throws MethodError is_vector(G, eg, X; error=:error)
@test_throws ErrorException is_vector(G, eg, X; error=:error)
@test Identity(NotImplementedOperation()) === eg
@test Identity(NotImplementedOperation) === eg
@test !is_point(G, Identity(AdditionOperation()))
Expand Down

0 comments on commit dad99bf

Please sign in to comment.