-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test library call wrappers (and correct typo)
- Loading branch information
Showing
3 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using SpecialFunctions | ||
|
||
@testset "special functions" begin | ||
# The intention here is not to check the accuracy of the libraries, | ||
# rather the sanity of library calls: | ||
piq = Float128(pi) | ||
halfq = Float128(0.5) | ||
@test gamma(halfq) ≈ sqrt(piq) | ||
for func in (erf, erfc, besselj0, besselj1, bessely0, bessely1, lgamma) | ||
@test func(halfq) ≈ func(0.5) | ||
end | ||
for func in (bessely, besselj) | ||
@test func(3,halfq) ≈ func(3,0.5) | ||
end | ||
end |