Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PGS62 committed Apr 5, 2024
1 parent 3f70766 commit b9a88f7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/rankcorr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,11 @@ end
number of threads, thanks to use of task-local storage. The tests below have a "safety
factor" of 1.2 against the expected size of allocations.
=#
@test (@allocated corkendall(x)) < (897_808 + Threads.nthreads() * 58_044) * 1.2
@test (@allocated corkendall(xm, skipmissing=:listwise)) < (1_119_392 + Threads.nthreads() * 22_172) * 1.2
@test (@allocated corkendall(xm, skipmissing=:pairwise)) < (892_112 + Threads.nthreads() * 61_116) * 1.2
@test (@allocated corkendall(x)) < (896_144 + Threads.nthreads() * 57_976) * 1.2
@test (@allocated corkendall(xm,skipmissing=:listwise)) < (1_117_728 + Threads.nthreads() * 22_104) * 1.2
@test (@allocated corkendall(xm,skipmissing=:pairwise)) < (890_448 + Threads.nthreads() * 61_048) * 1.2
@test (@allocated corspearman(x)) < (2_678_448 + Threads.nthreads() * 9_128) * 1.2
@test (@allocated corspearman(xm, skipmissing=:listwise)) < (1_803_712 + Threads.nthreads() * 3_992) * 1.2
@test (@allocated corspearman(xm, skipmissing=:pairwise)) < (1_692_208 + Threads.nthreads() * 67_172) * 1.2

@test (@allocated corspearman(xm,skipmissing=:listwise)) < (1_803_712 + Threads.nthreads() * 3_992) * 1.2
@test (@allocated corspearman(xm,skipmissing=:pairwise)) < (1_690_544 + Threads.nthreads() * 67_104) * 1.2
end
# COV_EXCL_STOP

0 comments on commit b9a88f7

Please sign in to comment.