Skip to content

Commit 622195c

Browse files
authored
Merge pull request #228 from bencottier/bc/drop-test-fd
Remove FiniteDifferences from tests
2 parents 43e2113 + 9d4ff95 commit 622195c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ChainRulesCore"
22
uuid = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
3-
version = "0.9.13"
3+
version = "0.9.14"
44

55
[deps]
66
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

test/rules.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +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 Ω̇ jvp(central_fdm(5, 1), complex_times, (x, ẋ))
132+
@test Ω̇ (1 + 2im) *
133133
Ω_rev, back = rrule(complex_times, x)
134134
@test Ω_rev == Ω
135135
∂self, ∂x = back(Ω̄)
136136
@test ∂self == NO_FIELDS
137-
@test ∂x j′vp(central_fdm(5, 1), complex_times, Ω̄, x)[1]
137+
@test ∂x (1 - 2im) * Ω̄
138138
end
139-
end
139+
end

test/runtests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ using Base.Broadcast: broadcastable
22
using BenchmarkTools
33
using ChainRulesCore
44
using LinearAlgebra: Diagonal, dot
5-
using FiniteDifferences
65
using StaticArrays
76
using Test
87

0 commit comments

Comments
 (0)