Skip to content

Commit a00e237

Browse files
committed
Add tests with Aqua.jl
1 parent 793d42e commit a00e237

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Project.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,22 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1313
FixedPointNumbersStatisticsExt = "Statistics"
1414

1515
[compat]
16+
Aqua = "0.8"
17+
Documenter = "1"
18+
Random = "1"
1619
StableRNGs = "1"
1720
# Update this version specifier when Statistics.jl v1.11.2 is released.
1821
# https://github.com/JuliaStats/Statistics.jl/issues/165
1922
Statistics = "< 1.11.2"
23+
Test = "1"
2024
julia = "1"
2125

2226
[extras]
27+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
2328
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
2429
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
2530
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2631
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2732

2833
[targets]
29-
test = ["Documenter", "StableRNGs", "Statistics", "Test"]
34+
test = ["Aqua", "Documenter", "StableRNGs", "Statistics", "Test"]

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
using FixedPointNumbers, Test
1+
using FixedPointNumbers, Test, Aqua
22

33
if VERSION >= v"1.6.0-DEV.816" # JuliaLang/julia #36962 # FIXME
44
@test isempty(detect_ambiguities(FixedPointNumbers))
55
else
66
@test isempty(detect_ambiguities(FixedPointNumbers, Base, Core))
77
end
88

9+
Aqua.test_all(FixedPointNumbers)
10+
911
if Sys.ARCH === :x86_64 || Sys.ARCH === :i686
1012
using Documenter
1113
doctest(FixedPointNumbers, manual = false)

0 commit comments

Comments
 (0)