Skip to content

Commit

Permalink
Fix random test failure in cov.jl due to negative varcorrection (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan authored and andreasnoack committed Apr 15, 2018
1 parent f70a012 commit a0e6f1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/cov.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ weight_funcs = (weights, aweights, fweights, pweights)
w1 = rand(3)
w2 = rand(8)

# varcorrection is negative if sum of weights is smaller than 1
if f === fweights
w1[1] += 1
w2[1] += 1
end

wv1 = f(w1)
wv2 = f(w2)

Expand Down

0 comments on commit a0e6f1e

Please sign in to comment.