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 08e95f7 commit b8f3057Copy full SHA for b8f3057
test/gamma_inc.jl
@@ -173,6 +173,11 @@ end
173
@test_throws ArgumentError("p + q must equal one but is 1.02") gamma_inc_inv(T(1.0), T(0.1), T(0.92))
174
@test_throws ArgumentError("p + q must equal one but is 1.02") gamma_inc_inv(T(1.0), T(0.92), T(0.1))
175
end
176
+
177
+ @testset "Promotion of arguments" begin
178
+ @test @inferred(gamma_inc_inv(1//2, 0.3f0, 0.7f0)) isa Float32
179
+ @test @inferred(gamma_inc_inv(1, 0.2f0, 0.8f0)) isa Float32
180
+ end
181
182
183
double(x::Real) = Float64(x)
0 commit comments