Skip to content

Commit 2a87577

Browse files
authored
Merge pull request #96 from JuliaComputing/lessstricttest
Make the `spring - harmonic oscillator` test less strict
2 parents 04479bc + 9d43892 commit 2a87577

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ sol = solve(prob, Rodas4())
141141

142142
@test maximum(norm.(eachcol(reduce(hcat, sol[collect(forcesensor.force.u)]))))
143143
maximum(norm.(eachcol(reduce(hcat, sol[collect(joint.frame_a.f)]))))
144-
@test norm(sol[powersensor.power.u]) < 1e-16
144+
@test norm(sol[powersensor.power.u]) < 1e-14
145145
doplot() && plot(sol, idxs = collect(joint.phi))
146146

147147
# Test power sensos
@@ -1103,4 +1103,4 @@ prob = ODEProblem(ssys, [
11031103
sol3 = solve(prob, Rodas4())
11041104

11051105
@test sol1(0:0.1:1, idxs=collect(body.r_0)) sol2(0:0.1:1, idxs=collect(body.r_0)) atol=1e-5
1106-
@test sol1(0:0.1:1, idxs=collect(body.r_0)) sol3(0:0.1:1, idxs=collect(body.r_0)) atol=1e-3
1106+
@test sol1(0:0.1:1, idxs=collect(body.r_0)) sol3(0:0.1:1, idxs=collect(body.r_0)) atol=1e-3

0 commit comments

Comments
 (0)