We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0ea52e commit 8cedc09Copy full SHA for 8cedc09
test/gamma_inc.jl
@@ -180,6 +180,11 @@ end
180
@test_throws ArgumentError("p + q must equal one but is 1.02") gamma_inc_inv(T(1.0), T(0.1), T(0.92))
181
@test_throws ArgumentError("p + q must equal one but is 1.02") gamma_inc_inv(T(1.0), T(0.92), T(0.1))
182
end
183
+
184
+ @testset "Promotion of arguments" begin
185
+ @test @inferred(gamma_inc_inv(1//2, 0.3f0, 0.7f0)) isa Float32
186
+ @test @inferred(gamma_inc_inv(1, 0.2f0, 0.8f0)) isa Float32
187
+ end
188
189
190
double(x::Real) = Float64(x)
0 commit comments