Skip to content

Commit 094ed9e

Browse files
committed
Fix tests for julia 1.0
1 parent ef620ef commit 094ed9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cov.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ sparse_array = sprandn(3, 8, 0.2)
122122
@test m == mean(X, wv2, dims=2)
123123
@test C cov(X, wv2, 2, corrected=false)
124124

125-
v = collect(eachcol(X))
125+
v = [X[:,i] for i in axes(X,2)]
126126
(m, C) = mean_and_cov(v; corrected=false)
127127
@test m == mean(v)
128128
@test C cov(v, corrected=false)

0 commit comments

Comments
 (0)