Skip to content

Commit 9d4ff95

Browse files
committed
Hard-code tests that used FiniteDifferences
1 parent c0dd94b commit 9d4ff95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/rules.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,11 @@ _second(t) = Base.tuple_type_head(Base.tuple_type_tail(t))
129129
Ω = complex_times(x)
130130
Ω_fwd, Ω̇ = frule((nothing, ẋ), complex_times, x)
131131
@test Ω_fwd == Ω
132+
@test Ω̇ (1 + 2im) *
132133
Ω_rev, back = rrule(complex_times, x)
133134
@test Ω_rev == Ω
134135
∂self, ∂x = back(Ω̄)
135136
@test ∂self == NO_FIELDS
137+
@test ∂x (1 - 2im) * Ω̄
136138
end
137139
end

0 commit comments

Comments
 (0)