We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a902f0f commit 81b5132Copy full SHA for 81b5132
test/methods.jl
@@ -91,10 +91,10 @@ struct NotAFunction end # not <: Function on purpose, cf #224
91
92
# Integration test to ensure that Unitful-output functions can be tested.
93
@testset "Unitful output" begin
94
- fn(x) = 5u"J/s" * x
95
- @show derivativeVal = central_fdm(5, 1)(fn, 1u"s/J")
+ fn(x) = 5.0u"J/s" * x
+ @show derivativeVal = central_fdm(5, 1)(fn, 1.0u"s/J")
96
@test unit(derivativeVal) == u"J/s"
97
- @test isapprox(derivativeVal, 5u"J/s"; rtol=1e-12, atol=1e-12u"J/s")
+ @test isapprox(derivativeVal, 5.0u"J/s"; rtol=1e-12, atol=1e-12u"J/s")
98
end
99
100
@testset "Adaptation improves estimate" begin
0 commit comments