Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"

[compat]
Aqua = ">= 0.8"
Roots = "0.8, 1, 2"
SpecialFunctions = "0.8, 0.9, 0.10, 1, 2"
Test = ">= 0.0"
julia = "1"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "JET", "Test"]
test = ["Aqua", "Test"]
4 changes: 2 additions & 2 deletions src/FunctionZeros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ for `n` = `1,2,...`.

`order` is passed to the function `Roots.fzero`.
"""
besselj_zero(nu, n; order=2) = Roots.fzero((x) -> SpecialFunctions.besselj(nu, x),
besselj_zero(nu, n; order=2) = Roots.find_zero((x) -> SpecialFunctions.besselj(nu, x),
bessel_zero_asymptotic(nu, n, 1); order=order)

"""
Expand All @@ -60,7 +60,7 @@ for `n` = `1,2,...`.

`order` is passed to the function `Roots.fzero`.
"""
bessely_zero(nu, n; order=2) = Roots.fzero((x) -> SpecialFunctions.bessely(nu, x),
bessely_zero(nu, n; order=2) = Roots.find_zero((x) -> SpecialFunctions.bessely(nu, x),
bessel_zero_asymptotic(nu, n, 2); order=order)

end # module FunctionZeros
13 changes: 4 additions & 9 deletions test/aqua_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ const PkgName = FunctionZeros
Aqua.test_deps_compat(PkgName)
end

# This often gives false positive
@testset "aqua project toml formatting" begin
Aqua.test_project_toml_formatting(PkgName)
end

@testset "aqua unbound_args" begin
Aqua.test_unbound_args(PkgName)
end
Expand All @@ -21,12 +16,12 @@ end
end

# Depending on Optim causes many ambiguity errors outside our control
# @testset "aqua test ambiguities" begin
# Aqua.test_ambiguities([PkgName, Core, Base])
# end
@testset "aqua test ambiguities" begin
Aqua.test_ambiguities([PkgName, Core, Base])
end

@testset "aqua piracy" begin
Aqua.test_piracy(PkgName)
Aqua.test_piracies(PkgName)
end

@testset "aqua project extras" begin
Expand Down
9 changes: 6 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
using FunctionZeros
using Test

if VERSION >= v"1.7"
include("jet_test.jl")
end
# I actually have fixed this in other packages.
# Could do the same here
# JET internals changed, and we use them.
# if VERSION >= v"1.7"
# include("jet_test.jl")
# end

include("aqua_test.jl")

Expand Down