We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b618fd5 commit 3339875Copy full SHA for 3339875
1 file changed
test/methods.jl
@@ -163,9 +163,9 @@
163
end
164
165
166
+ struct NotAFunction end # not <: Function on purpose, cf #224
167
+ (::NotAFunction)(x) = abs2(x)
168
@testset "do not require f::Function" begin
- struct NotAFunction end # not <: Function on purpose, cf #224
- (::NotAFunction)(x) = abs2(x)
169
x = 0.7
170
for f in [forward_fdm, central_fdm, backward_fdm]
171
f(5, 1)(NotAFunction(), x) ≈ 2 * x
0 commit comments