Skip to content

Commit 7567873

Browse files
committed
test getPointIdentity
1 parent 54c1289 commit 7567873

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/test_defVariable.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ struct NotAManifold end
2525

2626
@test getPointType(TestVarType1) == Vector{Float64}
2727
@test getPointType(TestVarType2) == ProductRepr{Tuple{Vector{Float64}, Matrix{Float64}}}
28+
29+
@test getPointIdentity(TestVarType1) == zeros(3)
30+
@test getPointIdentity(TestVarType2) == ProductRepr(zeros(3), diagm(ones(3)))
31+
2832
##
2933

3034

@@ -37,4 +41,8 @@ struct NotAManifold end
3741
@test getPointType(TestVarType1()) == Vector{Float64}
3842
@test getPointType(TestVarType2()) == ProductRepr{Tuple{Vector{Float64}, Matrix{Float64}}}
3943

44+
@test getPointIdentity(TestVarType1()) == zeros(3)
45+
@test getPointIdentity(TestVarType2()) == ProductRepr(zeros(3), diagm(ones(3)))
46+
47+
4048
end

0 commit comments

Comments
 (0)