Skip to content

Commit

Permalink
correct test muladd so that complex type is included (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
not-physicist authored Feb 20, 2024
1 parent b1d22a9 commit 9f1817a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/rulesets/Base/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,9 @@ end
test_scalar(one, x)
test_scalar(zero, x)
end

@testset "muladd(x::$T, y::$T, z::$T)" for T in (Float64, ComplexF64)
test_frule(muladd, 10randn(), randn(), randn())
test_rrule(muladd, 10randn(), randn(), randn())
test_frule(muladd, 10randn(T), randn(T), randn(T))
test_rrule(muladd, 10randn(T), randn(T), randn(T))
end

@testset "muladd ZeroTangent" begin
Expand Down

0 comments on commit 9f1817a

Please sign in to comment.