Skip to content

Commit

Permalink
Spearman: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
diegozea committed May 24, 2016
1 parent 4dce494 commit 8d2e57d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/spearman.jl
Expand Up @@ -62,4 +62,6 @@ function diff_rho(x,y)
corr.ρ - rho_with_ties(corr.S, corr.n, corr.xtiesadj, corr.ytiesadj)
end

@test_approx_eq mean(Float64[ diff_rho(rand(1:10,i), rand(1:10,i)) for i in 20:100 ]) 0.0
for i in 20:100
@test_approx_eq_eps diff_rho(rand(1:10,i), rand(1:10,i)) 0.0 1e-10
end

0 comments on commit 8d2e57d

Please sign in to comment.