Skip to content

Commit 8659383

Browse files
committed
oops, fix
1 parent 1e52ca9 commit 8659383

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test_defVariable.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ struct NotAManifold end
2727
@test getPointType(TestVarType2) == ProductRepr{Tuple{Vector{Float64}, Matrix{Float64}}}
2828

2929
@test getPointIdentity(TestVarType1) == zeros(3)
30-
@test getPointIdentity(TestVarType2) == ProductRepr(zeros(3), diagm(ones(3)))
30+
@test getPointIdentity(TestVarType2).parts[1] == ProductRepr(zeros(3), diagm(ones(3))).parts[1]
31+
@test getPointIdentity(TestVarType2).parts[2] == ProductRepr(zeros(3), diagm(ones(3))).parts[2]
3132

3233
##
3334

@@ -42,7 +43,7 @@ struct NotAManifold end
4243
@test getPointType(TestVarType2()) == ProductRepr{Tuple{Vector{Float64}, Matrix{Float64}}}
4344

4445
@test getPointIdentity(TestVarType1()) == zeros(3)
45-
@test getPointIdentity(TestVarType2()) == ProductRepr(zeros(3), diagm(ones(3)))
46-
46+
@test getPointIdentity(TestVarType2()).parts[1] == ProductRepr(zeros(3), diagm(ones(3))).parts[1]
47+
@test getPointIdentity(TestVarType2()).parts[2] == ProductRepr(zeros(3), diagm(ones(3))).parts[2]
4748

4849
end

0 commit comments

Comments
 (0)