Skip to content

Commit

Permalink
previous corner case not well tested
Browse files Browse the repository at this point in the history
  • Loading branch information
konkam committed Jan 18, 2019
1 parent 40bef85 commit 969d37f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_A_infinity_approx_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ using Random

@testset "testing approximate Ancestor(A∞) functions" begin
@test ExactWrightFisher.σ(1., 0.05) 0.6493907790932706 atol=10^(-8)
@test ExactWrightFisher.σ(1., 1.) 2./3
@test ExactWrightFisher.σ(1., 1) 2./3
Random.seed!(0)
@test ExactWrightFisher.Compute_A∞_approx(sum(1:4), 0.05) == 45
end
1 change: 1 addition & 0 deletions test/test_helper_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ using StatsFuns
ref = ExactWrightFisher.signed_logsumexp_arb([0.2, -3., 1], [1, 1, -1])[2]
@test ExactWrightFisher.signed_logsumexp(BigFloat[0.2, -3., 1], BigFloat[1, 1, -1])[2] Float64(ref)
@test ExactWrightFisher.signed_logsumexp([0.2, -3., 1], [1, 1, -1])[2] Float64(ref)
@test ExactWrightFisher.signed_logsumexp([0.2, -3., 1], [-1, -1, -1])[2] logsumexp([0.2, -3., 1])
end

0 comments on commit 969d37f

Please sign in to comment.