Skip to content

Commit c010ff7

Browse files
authored
Add tests with Aqua.jl (#283)
1 parent 793d42e commit c010ff7

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
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 = "0.27, 1"
18+
Random = "<0.0.1, 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"]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Build Status][action-img]][action-url]
44
[![Build Status][pkgeval-img]][pkgeval-url]
55
[![coverage][codecov-img]][codecov-url]
6+
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
67

78
This library implements fixed-point number types. A
89
[fixed-point number] represents a fractional, or

test/runtests.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
using FixedPointNumbers, Test
1+
using FixedPointNumbers, Test, Aqua
22

3-
if VERSION >= v"1.6.0-DEV.816" # JuliaLang/julia #36962 # FIXME
4-
@test isempty(detect_ambiguities(FixedPointNumbers))
5-
else
6-
@test isempty(detect_ambiguities(FixedPointNumbers, Base, Core))
7-
end
3+
Aqua.test_all(FixedPointNumbers)
84

95
if Sys.ARCH === :x86_64 || Sys.ARCH === :i686
106
using Documenter

0 commit comments

Comments
 (0)