Skip to content

Commit 47fe534

Browse files
committed
🚨 Fix tolerances in CRP and MRP tests
1 parent 881e993 commit 47fe534

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

test/conversions/mrp_to_angleaxis.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
eaa = mrp_to_angleaxis(m)
2525
@test eaa isa EulerAngleAxis{T}
2626

27-
@test isapprox(eaa, eaa_ref; atol = 100 * eps(T))
27+
@test isapprox(eaa, eaa_ref; atol = 1000 * eps(T))
2828
end
2929
end

test/conversions/mrp_to_crp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
c = mrp_to_crp(m)
2525
@test c isa CRP{T}
2626

27-
@test isapprox(c, c_ref; atol = 100 * eps(T), rtol = 100 * eps(T))
27+
@test isapprox(c, c_ref; atol = 1000 * eps(T), rtol = 1000 * eps(T))
2828
end
2929
end
3030

test/conversions/mrp_to_dcm.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
@test eltype(D) === T
3131

3232
# Verify the DCM against the reference entry by entry.
33-
@test maximum(abs.(D_ref - D)) < 100 * eps(T)
33+
@test maximum(abs.(D_ref - D)) < 1000 * eps(T)
3434
end
3535
end
3636
end

test/conversions/mrp_to_quat.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
@test eltype(q) === T
2626

2727
# Signs of quaternions can be flipped, so check for both.
28-
@test isapprox(q, q_ref; atol = 100 * eps(T)) ||
29-
isapprox(q, -q_ref; atol = 100 * eps(T))
28+
@test isapprox(q, q_ref; atol = 1000 * eps(T)) ||
29+
isapprox(q, -q_ref; atol = 1000 * eps(T))
3030
end
3131
end

test/conversions/quat_to_crp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
c = quat_to_crp(q)
2525
@test c isa CRP{T}
2626

27-
@test isapprox(c, c_ref; atol = 100 * eps(T))
27+
@test isapprox(c, c_ref; atol = 1000 * eps(T))
2828
end
2929
end
3030

test/conversions/quat_to_mrp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
m = quat_to_mrp(q)
2525
@test m isa MRP{T}
2626

27-
@test isapprox(m, m_ref; atol = 100 * eps(T))
27+
@test isapprox(m, m_ref; atol = 1000 * eps(T))
2828
end
2929
end
3030

0 commit comments

Comments
 (0)