Skip to content

Commit 48840a6

Browse files
authored
Create Project.toml (#1)
1 parent 6501863 commit 48840a6

8 files changed

+28
-11
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
77

88
[compat]
99
Random = "1"
10-
julia = "1"
10+
julia = "1.6"

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
[![CI](https://github.com/JuliaDynamics/DynamicSampling.jl/workflows/CI/badge.svg)](https://github.com/JuliaDynamics/DynamicSampling.jl/actions?query=workflow%3ACI)
3+
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
4+
25
# DynamicSampling.jl
36

47
This package implements efficient samplers which can be used to sample from

docs/Project.toml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
DynamicSampling = "2083aeaf-6258-5d07-89fc-32cf5060c837"
4+
5+
[compat]
6+
Documenter = "1"

docs/src/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

test/benchmark_tests.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ function b(rng, n)
1515
end
1616

1717
@testset "Benchmark Tests" begin
18-
rng = Xoshiro(42)
19-
b_small = @benchmark b($rng, 100)
20-
b_large = @benchmark b($rng, 10^6)
18+
rng = Xoshiro(42)
19+
b_small = @benchmark b($rng, 100)
20+
b_large = @benchmark b($rng, 10^6)
2121

22-
println("Benchmark results\n")
23-
println("Benchmark 10^2 items: $(mean(b_small.times)/10^6) ms")
24-
println("Benchmark 10^6 items: $(mean(b_large.times)/10^6) ms")
22+
println("Benchmark results\n")
23+
println("Benchmark 10^2 items: $(mean(b_small.times)/10^6) ms")
24+
println("Benchmark 10^6 items: $(mean(b_large.times)/10^6) ms")
2525
end

test/package_sanity_tests.jl

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
using Aqua
3+
4+
@testset "Code quality" begin
5+
Aqua.test_all(DynamicSampling, ambiguities = false)
6+
end

test/runtests.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ using StatsBase
88
using Test
99

1010
@testset "DynamicSampling.jl Tests" begin
11-
include("weighted_sampler_tests.jl")
12-
include("benchmark_tests.jl")
11+
include("package_sanity_tests.jl")
12+
include("weighted_sampler_tests.jl")
13+
include("benchmark_tests.jl")
1314
end

test/weighted_sampler_tests.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
@testset "DynamicSampling.jl Tests" begin
3-
b = 100
3+
b = 100
44
range = 1:b
55
weights = [Float64(i) for i in range]
66
weights2 = (Float64(i) for i in range)
@@ -53,4 +53,4 @@
5353

5454
chisq_test = ChisqTest(counts_est, ps_exact)
5555
@test pvalue(chisq_test) > 0.05
56-
end
56+
end

0 commit comments

Comments
 (0)