Skip to content

Commit 561dfcd

Browse files
committed
fixes tests that were broken by SciMLBase PR 1101
1 parent a98cc86 commit 561dfcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/diffeqfunction_tests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ macro iop_def(funcdef::Expr)
2121
end
2222
end
2323

24-
function test_inplace(du, expected, f::Function, args...)
24+
function test_inplace(du, expected, f::AbstractSciMLFunction, args...)
2525
"""Test the in-place version of a function."""
2626
fill!(du, NaN)
2727
f(du, args...)
2828
@test du == expected
2929
end
3030

3131
# Allocate du automatically based on type of expected result
32-
function test_inplace(expected, f::Function, args...)
32+
function test_inplace(expected, f::AbstractSciMLFunction, args...)
3333
test_inplace(similar(expected), expected, f, args...)
3434
end
3535

36-
function test_iop(expected, f_op::Function, f_ip::Function, args...)
36+
function test_iop(expected, f_op::AbstractSciMLFunction, f_ip::AbstractSciMLFunction, args...)
3737
"""Test in- and out-of-place version of function both match expected value."""
3838
@test f_op(args...) == expected
3939
test_inplace(expected, f_ip, args...)

0 commit comments

Comments
 (0)