Skip to content

Commit 5c51df7

Browse files
committed
attempt to fix Calculus.jl test failure on v0.4
1 parent 77e3736 commit 5c51df7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/JacobianTest.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ end
9191
for f in DiffBase.ARRAY_TO_ARRAY_FUNCS
9292
v = f(X)
9393
j = ForwardDiff.jacobian(f, X)
94-
@test_approx_eq_eps j Calculus.jacobian(f, X, :forward) FINITEDIFF_ERROR
94+
@test_approx_eq_eps j Calculus.jacobian(x -> vec(f(x)), X, :forward) FINITEDIFF_ERROR
9595
for c in CHUNK_SIZES
9696
cfg = JacobianConfig{c}(X)
9797

@@ -114,7 +114,7 @@ for f! in DiffBase.INPLACE_ARRAY_TO_ARRAY_FUNCS
114114
v = zeros(Y)
115115
f!(v, X)
116116
j = ForwardDiff.jacobian(f!, zeros(Y), X)
117-
@test_approx_eq_eps j Calculus.jacobian(x -> (y = zeros(Y); f!(y, x); y), X, :forward) FINITEDIFF_ERROR
117+
@test_approx_eq_eps j Calculus.jacobian(x -> (y = zeros(Y); f!(y, x); vec(y)), X, :forward) FINITEDIFF_ERROR
118118
for c in CHUNK_SIZES
119119
cfg = JacobianConfig{c}(X)
120120
ycfg = JacobianConfig{c}(zeros(Y), X)

0 commit comments

Comments
 (0)