Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbates committed Apr 2, 2022
1 parent 0e0b6c0 commit 5e8e405
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/misc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,10 @@ end
@test isone(binompdf(n, p, k))
end
end

@testset "lstirling_asym" begin
# can test for equality here because the lhs is the way the value is created
@test Float32(lstirling_asym(1.0)) == @inferred lstirling_asym(1.0f0)
# for 64.0f0 the expansion is used but for 64.0 the BigFloat value is rounded
@test Float32(lstirling_asym(64.0)) @inferred lstirling_asym(64.0f0)
end

0 comments on commit 5e8e405

Please sign in to comment.