Skip to content

Commit 5d7b635

Browse files
committed
reverted unnecessary changes
1 parent f937593 commit 5d7b635

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/runtests.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,17 @@ non_diffeable_arg_functions = [(:Base, :rem2pi, 2), (:Base, :ldexp, 2), (:Base,
9393
@test DiffRules.hasdiffrule(M, f, 3)
9494
derivs = DiffRules.diffrule(M, f, :foo, :bar, :goo)
9595
@eval begin
96-
foo, bar, goo = randn(3)
97-
dx, dy, dz = $(derivs[1]), $(derivs[2]), $(derivs[3])
98-
if !(isnan(dx))
99-
@test isapprox(dx, finitediff(x -> $M.$f(x, bar, goo), foo), rtol=0.05)
100-
end
101-
if !(isnan(dy))
102-
@test isapprox(dy, finitediff(y -> $M.$f(foo, y, goo), bar), rtol=0.05)
103-
end
104-
if !(isnan(dz))
105-
@test isapprox(dz, finitediff(z -> $M.$f(foo, bar, z), goo), rtol=0.05)
106-
end
96+
foo, bar, goo = randn(3)
97+
dx, dy, dz = $(derivs[1]), $(derivs[2]), $(derivs[3])
98+
if !(isnan(dx))
99+
@test isapprox(dx, finitediff(x -> $M.$f(x, bar, goo), foo), rtol=0.05)
100+
end
101+
if !(isnan(dy))
102+
@test isapprox(dy, finitediff(y -> $M.$f(foo, y, goo), bar), rtol=0.05)
103+
end
104+
if !(isnan(dz))
105+
@test isapprox(dz, finitediff(z -> $M.$f(foo, bar, z), goo), rtol=0.05)
106+
end
107107
end
108108
=#
109109
end

0 commit comments

Comments
 (0)