Skip to content

Commit

Permalink
Add one further small test.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Oct 30, 2024
1 parent bd969b9 commit 8a726a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/LieGroups.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export det,
diff_right_compose!
export get_coordinates, get_coordinates!, get_vector, get_vector!
export hat, hat!
export inv_left_compose, inv_left_compose!, inv_right_compose, inv_right_compose!
export inv, inv!, inv_left_compose, inv_left_compose!, inv_right_compose, inv_right_compose!
export isapprox, is_point, is_vector
export conjugate, conjugate!, diff_conjugate, diff_conjugate!
export exp, exp!
Expand Down
11 changes: 9 additions & 2 deletions test/operations/test_multiplication_operation.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
using LieGroups, Test

@testset "Addition Operation" begin
@testset "Base.:+ and Base.:- with the Identity" begin
s = joinpath(@__DIR__, "..", "LieGroupsTestSuite.jl")
!(s in LOAD_PATH) && (push!(LOAD_PATH, s))
using LieGroupsTestSuite

@testset "Multiplication Operation" begin
@testset "Base.:* and Base.:* with the Identity" begin
# Generic & Number
e = Identity(MatrixMultiplicationGroupOperation())
@test (e * e) === e
Expand All @@ -23,5 +27,8 @@ using LieGroups, Test
g2 = fill(2.0, ())
# Array
g3 = [2.0 0.0; 0.0 2.0]
M = LieGroupsTestSuite.DummyManifold()
G = LieGroup(M, MatrixMultiplicationGroupOperation())
@test inv(G, e) === e
end
end

0 comments on commit 8a726a9

Please sign in to comment.