Skip to content

Commit

Permalink
Fix 1.6 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed Oct 12, 2023
1 parent e41ceaa commit 437d349
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
LogarithmicNumbersForwardDiffExt = "ForwardDiff"

[compat]
ForwardDiff = "0.10"
julia = "1.6"

[extras]
Expand Down
8 changes: 5 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using LogarithmicNumbers, Test, Aqua

Aqua.test_all(LogarithmicNumbers)

function _approx(x,y)
ans = isapprox(x, y, atol=1e-3) || (isnan(x) && isnan(y))
ans || @show x y
Expand Down Expand Up @@ -37,7 +35,11 @@ Int[x for x in vals if x isa Int && x ≥ 0],
atypes = (ULogarithmic, Logarithmic)
atypes2 = (ULogarithmic, ULogFloat32, Logarithmic, LogFloat32)

@testset "LogarithmicNumbers" begin
@testset verbose=true "LogarithmicNumbers" begin

@testset "Aqua" begin
Aqua.test_all(LogarithmicNumbers, project_toml_formatting=VERSION>v"1.6")
end

@testset "types" begin
@test @isdefined ULogarithmic
Expand Down

0 comments on commit 437d349

Please sign in to comment.