Skip to content

Commit

Permalink
version bump (JuliaLang#507)
Browse files Browse the repository at this point in the history
* version bump

* fix test warnings
  • Loading branch information
matbesancon authored Jul 30, 2019
1 parent b9454f9 commit 0faf210
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
5 changes: 3 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name = "StatsBase"
uuid = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
version = "0.31.0"
authors = ["JuliaStats"]
version = "0.32.0"

[deps]
DataAPI = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
Expand All @@ -22,4 +23,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
test = ["Dates", "DelimitedFiles", "Test"]

[compat]
julia = "1"
julia = "1"
10 changes: 5 additions & 5 deletions test/sampling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ test_rng_use(sample, 1:10, 10)

@testset "sampling pairs" begin

Random.seed!(1)
rng = Random.MersenneTwister(1)

@test samplepair(2) === (1, 2)
@test samplepair(10) === (8, 2)
@test samplepair(rng, 2) === (1, 2)
@test samplepair(rng, 10) === (8, 2)

@test samplepair([3, 4, 2, 6, 8]) === (2, 6)
@test samplepair([1, 2]) === (1, 2)
@test samplepair(rng, [3, 4, 2, 6, 8]) === (2, 6)
@test samplepair(rng, [1, 2]) === (1, 2)
end

test_rng_use(samplepair, 1000)
Expand Down
3 changes: 2 additions & 1 deletion test/scalarstats.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using StatsBase
using Test
using DelimitedFiles
using Statistics

##### Location

Expand Down Expand Up @@ -113,7 +114,7 @@ z2 = [8. 2. 3. 1.; 24. 10. -1. -1.; 20. 12. 1. -2.]
@test mad((x for x in (1, 2.1)), normalize=false) 0.55
@test mad(Any[1, 2.1], normalize=false) 0.55
@test mad(Union{Int,Missing}[1, 2], normalize=false) 0.5
@test_throws ArgumentError mad(Int[])
@test_throws ArgumentError mad(Int[], normalize = true)

# Issue 197
@test mad(1:2, normalize=true) 0.7413011092528009
Expand Down

0 comments on commit 0faf210

Please sign in to comment.