Skip to content

Commit 5d227d4

Browse files
authored
Add tests with Aqua.jl (#160)
* add tests with Aqua.jl * fix compat table * specify Julia version for test with Aqua.jl
1 parent b88f8cb commit 5d227d4

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1414
IntervalSetsStatisticsExt = "Statistics"
1515

1616
[compat]
17+
Aqua = "0.7"
1718
julia = "1.6"
1819

1920
[extras]
21+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
2022
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
2123
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
2224
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2325
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2426
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
2527

2628
[targets]
27-
test = ["Test", "Random", "OffsetArrays", "Statistics", "Unitful"]
29+
test = ["Aqua", "Test", "Random", "OffsetArrays", "Statistics", "Unitful"]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Interval Sets for Julia
55
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaMath.github.io/IntervalSets.jl/dev)
66
[![Build Status](https://github.com/JuliaMath/IntervalSets.jl/workflows/CI/badge.svg)](https://github.com/JuliaMath/IntervalSets.jl/actions)
77
[![Coverage](https://codecov.io/gh/JuliaMath/IntervalSets.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaMath/IntervalSets.jl)
8+
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
89

910
This package represents intervals of an ordered set. For an interval
1011
spanning from `a` to `b`, all values `x` that lie between `a` and `b`

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ using Unitful
88

99
import IntervalSets: Domain, endpoints, closedendpoints, TypedEndpointsInterval
1010

11+
using Aqua
12+
if VERSION v"1.7.0-"
13+
# The verison specification can be removed when https://github.com/JuliaTesting/Aqua.jl/issues/208 is resolved.
14+
Aqua.test_all(IntervalSets)
15+
end
16+
1117
struct MyClosedUnitInterval <: TypedEndpointsInterval{:closed,:closed,Int} end
1218
endpoints(::MyClosedUnitInterval) = (0,1)
1319
Base.promote_rule(::Type{MyClosedUnitInterval}, ::Type{ClosedInterval{T}}) where T =

0 commit comments

Comments
 (0)