Skip to content

Commit

Permalink
Set seed in each test file
Browse files Browse the repository at this point in the history
  • Loading branch information
sethaxen committed Jan 19, 2022
1 parent bb2c0a6 commit 55d91ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/defaults.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using AbstractDifferentiation
using Test
using FiniteDifferences, ForwardDiff, Zygote
using Random
Random.seed!(1234)

include("test_utils.jl")

Expand Down
2 changes: 2 additions & 0 deletions test/forwarddiff.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using AbstractDifferentiation
using Test
using ForwardDiff
using Random
Random.seed!(1234)

include("test_utils.jl")

Expand Down
1 change: 0 additions & 1 deletion test/test_utils.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using AbstractDifferentiation
using Test, LinearAlgebra
using Random
Random.seed!(1234)

fder(x, y) = exp(y) * x + y * log(x)
dfderdx(x, y) = exp(y) + y * 1/x
Expand Down

0 comments on commit 55d91ee

Please sign in to comment.