Skip to content

Commit 0faf210

Browse files
authored
version bump (JuliaLang#507)
* version bump * fix test warnings
1 parent b9454f9 commit 0faf210

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

Project.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name = "StatsBase"
22
uuid = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
3-
version = "0.31.0"
3+
authors = ["JuliaStats"]
4+
version = "0.32.0"
45

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

2425
[compat]
25-
julia = "1"
26+
julia = "1"

test/sampling.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ test_rng_use(sample, 1:10, 10)
7878

7979
@testset "sampling pairs" begin
8080

81-
Random.seed!(1)
81+
rng = Random.MersenneTwister(1)
8282

83-
@test samplepair(2) === (1, 2)
84-
@test samplepair(10) === (8, 2)
83+
@test samplepair(rng, 2) === (1, 2)
84+
@test samplepair(rng, 10) === (8, 2)
8585

86-
@test samplepair([3, 4, 2, 6, 8]) === (2, 6)
87-
@test samplepair([1, 2]) === (1, 2)
86+
@test samplepair(rng, [3, 4, 2, 6, 8]) === (2, 6)
87+
@test samplepair(rng, [1, 2]) === (1, 2)
8888
end
8989

9090
test_rng_use(samplepair, 1000)

test/scalarstats.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using StatsBase
22
using Test
33
using DelimitedFiles
4+
using Statistics
45

56
##### Location
67

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

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

0 commit comments

Comments
 (0)