Skip to content

Commit

Permalink
Avoid random failures in test (JuliaLang#624)
Browse files Browse the repository at this point in the history
Negative weights can give errors.
  • Loading branch information
nalimilan authored Dec 5, 2020
1 parent da4ee2e commit 8075e28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/moments.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ expected_std = sqrt.(expected_var)
end

x = rand(5, 6)
w1 = rand(5)
w2 = rand(6)
w1 = [0.57, 5.10, 0.91, 1.72, 0.0]
w2 = [3.84, 2.70, 8.29, 8.91, 9.71, 0.0]

@testset "Uncorrected with $f" for f in weight_funcs
wv1 = f(w1)
Expand Down

0 comments on commit 8075e28

Please sign in to comment.