Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszbaran committed Oct 28, 2023
1 parent 137a39d commit 54ea696
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/groups/groups_general.jl
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,22 @@ using Manifolds:
A = GroupOperationAction(G, (d, s))
return apply_diff_group(A, id, X, id)
end
function apply_at_id!(Y, X, d, s)
A = GroupOperationAction(G, (d, s))
return apply_diff_group!(A, Y, id, X, id)
end

_get_sign(::LeftAction, ::LeftSide) = 1 # former case
_get_sign(::LeftAction, ::RightSide) = -1 # new case
_get_sign(::RightAction, ::LeftSide) = -1 # new case
_get_sign(::RightAction, ::RightSide) = 1 # former case
Y = similar(X)

for d in [LeftAction(), RightAction()]
for s in [LeftSide(), RightSide()]
@test apply_at_id(X, d, s) _get_sign(d, s) * X
apply_at_id!(Y, X, d, s)
@test Y _get_sign(d, s) * X
end
end
end
Expand Down
1 change: 1 addition & 0 deletions test/groups/special_orthogonal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ using Manifolds: LeftForwardAction, RightBackwardAction
test_exp_from_identity=true,
test_log_from_identity=true,
test_vee_hat_from_identity=true,
test_inv_diff=true,
)

@testset "log_lie edge cases" begin
Expand Down
1 change: 1 addition & 0 deletions test/groups/translation_group.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ using Manifolds: LeftForwardAction, RightBackwardAction
test_exp_from_identity=true,
test_log_from_identity=true,
test_vee_hat_from_identity=true,
test_inv_diff=true,
)
end

Expand Down

0 comments on commit 54ea696

Please sign in to comment.