Skip to content

Commit

Permalink
add error test on incorrect integral function dispatches
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Sep 19, 2023
1 parent e3ee453 commit 318e79f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/function_building_error_messages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,9 @@ iiip(y, u, p) = y .= u * p
IntegralFunction(ioop)
IntegralFunction(iiip, Float64[])

@test_throws SciMLBase.IntegrandMismatchFunctionError IntegralFunction(ioop, Float64[])
@test_throws SciMLBase.IntegrandMismatchFunctionError IntegralFunction(iiip)

# BatchIntegralFunction

boop(y, u, p) = y .= p .* u
Expand Down

0 comments on commit 318e79f

Please sign in to comment.