Skip to content

Commit

Permalink
Merge pull request #73 from SciML/auto-juliaformatter-pr
Browse files Browse the repository at this point in the history
Automatic JuliaFormatter.jl run
  • Loading branch information
ChrisRackauckas committed Jul 22, 2023
2 parents a50b7a3 + 0ef3b26 commit 26b5799
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/basictests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -541,17 +541,17 @@ for alg in (SimpleNewtonRaphson(), SimpleTrustRegion())
end

# Flipped signs test
f1(u, p) = u * u - p
f1(u, p) = u * u - p
f2(u, p) = p - u * u

for Alg in (Alefeld, Bisection, Falsi, Brent, ITP, Ridder)
alg = Alg()
for p 1:4
for p in 1:4
inp1 = IntervalNonlinearProblem(f1, (1.0, 2.0), p)
inp2 = IntervalNonlinearProblem(f2, (1.0, 2.0), p)
sol = solve(inp1, alg)
@test abs.(sol.u) sqrt.(p)
sol = solve(inp2, alg)
@test abs.(sol.u) sqrt.(p)
end
end
end

0 comments on commit 26b5799

Please sign in to comment.