Skip to content

Commit 3095270

Browse files
authored
Apply suggestions from code review
1 parent 18a49ce commit 3095270

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_defVariable.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +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)[1] == ArrayPartition(zeros(3), diagm(ones(3)))[1]
31-
@test getPointIdentity(TestVarType2)[2] == ArrayPartition(zeros(3), diagm(ones(3)))[2]
30+
@test getPointIdentity(TestVarType2).x[1] == ArrayPartition(zeros(3), diagm(ones(3))).x[1]
31+
@test getPointIdentity(TestVarType2).x[2] == ArrayPartition(zeros(3), diagm(ones(3))).x[2]
3232

3333
##
3434

@@ -43,7 +43,7 @@ struct NotAManifold end
4343
# @test getPointType(TestVarType2()) == ProductRepr{Tuple{Vector{Float64}, Matrix{Float64}}}
4444

4545
@test getPointIdentity(TestVarType1()) == zeros(3)
46-
@test getPointIdentity(TestVarType2())[1] == ArrayPartition(zeros(3), diagm(ones(3)))[1]
47-
@test getPointIdentity(TestVarType2())[2] == ArrayPartition(zeros(3), diagm(ones(3)))[2]
46+
@test getPointIdentity(TestVarType2()).x[1] == ArrayPartition(zeros(3), diagm(ones(3))).x[1]
47+
@test getPointIdentity(TestVarType2()).x[2] == ArrayPartition(zeros(3), diagm(ones(3))).x[2]
4848

4949
end

0 commit comments

Comments
 (0)