Skip to content

Commit 9f1817a

Browse files
correct test muladd so that complex type is included (#786)
1 parent b1d22a9 commit 9f1817a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/rulesets/Base/base.jl

+2-3
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,9 @@ end
166166
test_scalar(one, x)
167167
test_scalar(zero, x)
168168
end
169-
170169
@testset "muladd(x::$T, y::$T, z::$T)" for T in (Float64, ComplexF64)
171-
test_frule(muladd, 10randn(), randn(), randn())
172-
test_rrule(muladd, 10randn(), randn(), randn())
170+
test_frule(muladd, 10randn(T), randn(T), randn(T))
171+
test_rrule(muladd, 10randn(T), randn(T), randn(T))
173172
end
174173

175174
@testset "muladd ZeroTangent" begin

0 commit comments

Comments
 (0)