forked from JuliaIntervals/IntervalArithmetic.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests provided by Aqua.jl (JuliaIntervals#687)
* Add tests provided by Aqua.jl * Additions to Project.toml and test/Project.toml * Fix _interval_infsup ambiguities * Add ambiguity solutions proposed by @OlivierHnt, and revert 47605eb 47605eb solved some ambiguities, but induced (construction) errors Co-authored-by: Olivier Hénot <[email protected]> * Solve Base.union! ambiguities * Remove LinearAlgebra from [deps] * Try to solve some ambiguities related to ForwardDiff * Return Dual's for promote_rule * Add convert method to ForwardDiff extension * Add Dual(x::ExactReal) * More methods Dual(::ExactReal) * Fix Project.toml * Define similar to avoid many ambiguities * Fix rebase issues * Fix tests * Fix compat * Fix similar breaking Documenter --------- Co-authored-by: Olivier Hénot <[email protected]> Co-authored-by: Benoît Richard <[email protected]>
- Loading branch information
1 parent
a2ef716
commit da867a2
Showing
9 changed files
with
78 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Test | ||
using IntervalArithmetic | ||
using Aqua | ||
|
||
@testset "Aqua tests (performance)" begin | ||
# This tests that we don't accidentally run into | ||
# https://github.com/JuliaLang/julia/issues/29393 | ||
# Aqua.test_unbound_args(IntervalArithmetic) | ||
ua = Aqua.detect_unbound_args_recursively(IntervalArithmetic) | ||
@test length(ua) == 0 | ||
|
||
# See: https://github.com/SciML/OrdinaryDiffEq.jl/issues/1750 | ||
# Test that we're not introducing method ambiguities across deps | ||
ambs = Aqua.detect_ambiguities(IntervalArithmetic; recursive = true) | ||
pkg_match(pkgname, pkdir::Nothing) = false | ||
pkg_match(pkgname, pkdir::AbstractString) = occursin(pkgname, pkdir) | ||
filter!(x -> pkg_match("IntervalArithmetic", pkgdir(last(x).module)), ambs) | ||
@test_broken length(ambs) == 0 | ||
end | ||
|
||
@testset "Aqua tests (additional)" begin | ||
Aqua.test_undefined_exports(IntervalArithmetic) | ||
# Aqua.test_deps_compat(IntervalArithmetic) | ||
Aqua.test_stale_deps(IntervalArithmetic) | ||
Aqua.test_piracies(IntervalArithmetic) | ||
Aqua.test_unbound_args(IntervalArithmetic) | ||
Aqua.test_project_extras(IntervalArithmetic) | ||
Aqua.test_persistent_tasks(IntervalArithmetic) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,6 @@ for f ∈ readdir("ITF1788_tests"; join = true) | |
include(f) | ||
end | ||
end | ||
|
||
# Aqua tests | ||
include("aqua.jl") |