Skip to content

Commit

Permalink
fix deprecation warnings in core
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoStrouwen committed Jan 7, 2024
1 parent 24f0105 commit ac2ce86
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/function_building_error_messages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -462,14 +462,14 @@ NonlinearFunction(nfoop, vjp = nvjp)

# Integrals
intf(u) = 1.0
@test_throws SciMLBase.TooFewArgumentsError IntegralProblem(intf, 0.0, 1.0)
@test_throws SciMLBase.TooFewArgumentsError IntegralProblem(intf, (0.0, 1.0))
intf(u, p) = 1.0
p = 2.0

IntegralProblem(intf, 0.0, 1.0)
IntegralProblem(intf, 0.0, 1.0, p)
IntegralProblem(intf, [0.0], [1.0])
IntegralProblem(intf, [0.0], [1.0], p)
IntegralProblem(intf, (0.0, 1.0))
IntegralProblem(intf, (0.0, 1.0), p)
IntegralProblem(intf, ([0.0], [1.0]))
IntegralProblem(intf, ([0.0], [1.0]), p)

x = [1.0, 2.0]
y = rand(2, 2)
Expand Down

0 comments on commit ac2ce86

Please sign in to comment.