We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54c1289 commit 7567873Copy full SHA for 7567873
test/test_defVariable.jl
@@ -25,6 +25,10 @@ struct NotAManifold end
25
26
@test getPointType(TestVarType1) == Vector{Float64}
27
@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
32
##
33
34
@@ -37,4 +41,8 @@ struct NotAManifold end
37
41
@test getPointType(TestVarType1()) == Vector{Float64}
38
42
@test getPointType(TestVarType2()) == ProductRepr{Tuple{Vector{Float64}, Matrix{Float64}}}
39
43
44
+@test getPointIdentity(TestVarType1()) == zeros(3)
45
+@test getPointIdentity(TestVarType2()) == ProductRepr(zeros(3), diagm(ones(3)))
46
47
40
48
end
0 commit comments