We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3339875 commit 65f5333Copy full SHA for 65f5333
test/methods.jl
@@ -1,3 +1,10 @@
1
+"""
2
+Wrapper used in test set “do not require f::Function” below, moved outside so that it
3
+works on Julia 1.0.
4
5
+struct NotAFunction end # not <: Function on purpose, cf #224
6
+(::NotAFunction)(x) = abs2(x)
7
+
8
@testset "Methods" begin
9
@testset "Correctness" begin
10
# Finite difference methods to test.
@@ -163,8 +170,6 @@
163
170
end
164
171
165
172
166
- struct NotAFunction end # not <: Function on purpose, cf #224
167
- (::NotAFunction)(x) = abs2(x)
168
173
@testset "do not require f::Function" begin
169
174
x = 0.7
175
for f in [forward_fdm, central_fdm, backward_fdm]
0 commit comments