Skip to content

Commit 8075e28

Browse files
authored
Avoid random failures in test (#624)
Negative weights can give errors.
1 parent da4ee2e commit 8075e28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/moments.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ expected_std = sqrt.(expected_var)
104104
end
105105

106106
x = rand(5, 6)
107-
w1 = rand(5)
108-
w2 = rand(6)
107+
w1 = [0.57, 5.10, 0.91, 1.72, 0.0]
108+
w2 = [3.84, 2.70, 8.29, 8.91, 9.71, 0.0]
109109

110110
@testset "Uncorrected with $f" for f in weight_funcs
111111
wv1 = f(w1)

0 commit comments

Comments
 (0)