Skip to content

Commit

Permalink
Merge pull request #80 from JuliaStats/vs/aqua
Browse files Browse the repository at this point in the history
Add Aqua tests
  • Loading branch information
ViralBShah authored May 19, 2024
2 parents 8dc9208 + c429bcc commit f53e9ac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
13 changes: 9 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
name = "Rmath"
uuid = "79098fc4-a85e-5d69-aa6a-4863f24498fa"
version = "0.7.1"
version = "0.8.0"

[deps]
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Rmath_jll = "f50d1b31-88e8-58de-be2c-1cc44531875f"

[compat]
Rmath_jll = "0.3, 0.4"
julia = "1.3"
Random = "<0.0.1, 1"
Aqua = "0.8"
Test = "<0.0.1, 1"
Statistics = "<0.0.1, 1"
Rmath_jll = "0.4"
julia = "1.6"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Statistics", "Test"]
test = ["Aqua", "Statistics", "Test"]
8 changes: 7 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Aqua
using Random, Rmath, Statistics, Test

Random.seed!(124)
Expand Down Expand Up @@ -134,7 +135,7 @@ allEq(Rt2, qt.(1 .- Pt2, 1.01, false), 1e-2)
allEq(Runif, qunif.(1 .- Punif, .2, 2, false))
allEq(Rweibull, qweibull.(1 .- Pweibull, 3, 2, false))
allEq(Rwilcox, qwilcox.(1 .- Pwilcox, 13, 17, false))

const logPbinom = pbinom.(Rbinom, 55, pi/16, true, true)
const logPnbinom = pnbinom.(Rnbinom, 7, .01, true, true)
const logPpois = ppois.(Rpois, 12, true, true)
Expand Down Expand Up @@ -204,3 +205,8 @@ allEq(Rnbinom, rnbinom(n, 7, .01))
allEq(Rnorm, rnorm(n, -1, 3))
allEq(Rpois, rpois(n, 12))
allEq(Rsignrank, rsignrank(n, 47))

# Aqua tests
@testset "Aqua.jl" begin
Aqua.test_all(Rmath)
end

0 comments on commit f53e9ac

Please sign in to comment.