Skip to content

Commit

Permalink
Format .jl files [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
jverzani authored and github-actions[bot] committed Sep 15, 2024
1 parent a2e58ee commit 9a96524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_composable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ using ForwardDiff
@testset "find zero(s) with Unitful" begin
s = u"s"
m = u"m"
g = (9 + 8//10) * m / s^2
g = (9 + 8 // 10) * m / s^2
v0 = 10m / s
y0 = 16m
y(t) = -g * t^2 + v0 * t + y0
Expand All @@ -47,7 +47,7 @@ using ForwardDiff
xzs1 = find_zeros(x -> cos(x / 1u"m"), -1.6u"m", 2u"m")
@test length(xzs1) == 2 && maximum(xzs1) 1.5707963267948966 * u"m"

FX = ZeroProblem(y, (0f0s, 2f0s))
FX = ZeroProblem(y, (0.0f0s, 2.0f0s))
prob = Roots.init(FX, Roots.AlefeldPotraShi())
@test Roots.is_small_Δx(prob.M, prob.state, prob.options) isa Bool # does not throw
end
Expand Down

0 comments on commit 9a96524

Please sign in to comment.