Skip to content

Commit b49b01f

Browse files
Provide seeds to ensure tests are consistent
1 parent 145b81e commit b49b01f

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

test/reducedim.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Essentially, a direct reproduction of Base's reducedim.jl tests.
22
# Some small allowances are made for deviations.
3+
Random.seed!(0x537335fdb9e832b1)
34

45
@testset "test reductions over region: $region" for region in Any[
56
1, 2, 3, 4, 5, (1, 2), (1, 3), (1, 4), (2, 3), (2, 4), (3, 4),

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using VectorizedReduction
22
using Test
3+
using Random
34

45
const tests = [
56
"vrspecials.jl",

test/vrspecials.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ end
125125
@test ind1 == ind2 && val1 val2
126126
end
127127
@testset "vfindminmax_vararg" begin
128+
Random.seed!(1234)
128129
A1 = rand(5,5)
129130
A2 = rand(5,5)
130131
A3 = rand(5,5)

0 commit comments

Comments
 (0)