Skip to content

Commit 7a5f7b9

Browse files
committed
test even and odds
1 parent 636827b commit 7a5f7b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/rulesets/packages/SpecialFunctions.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ using SpecialFunctions
3434
end
3535
end
3636

37+
# SpecialFunctions 0.7->0.8 changes:
3738
@testset "log gamma and co" begin
38-
# SpecialFunctions 0.7->0.8 changes:
39-
for x in (1.5, 2.5, 10.5, -0.6, -2.6, 1.6+1.6im, 1.6-1.6im, -4.6+1.6im)
39+
#It is important that we have negative numbers with both odd and even integer parts
40+
for x in (1.5, 2.5, 10.5, -0.6, -2.6, -3.3, 1.6+1.6im, 1.6-1.6im, -4.6+1.6im)
4041
if isdefined(SpecialFunctions, :lgamma)
4142
test_scalar(SpecialFunctions.lgamma, x)
4243
end
@@ -48,12 +49,11 @@ end
4849
if isdefined(SpecialFunctions, :logabsgamma)
4950
isreal(x) || continue
5051

51-
x, Δx, x̄ = randn(3)
52+
Δx, x̄ = randn(2)
5253
Δz = (randn(), randn())
5354

5455
frule_test(SpecialFunctions.logabsgamma, (x, Δx))
5556
rrule_test(SpecialFunctions.logabsgamma, Δz, (x, x̄))
5657
end
5758
end
58-
5959
end

0 commit comments

Comments
 (0)