From ac2ce86b7b108476fac341e55390b666c71b8adc Mon Sep 17 00:00:00 2001 From: Arno Strouwen Date: Sun, 7 Jan 2024 13:03:57 +0100 Subject: [PATCH] fix deprecation warnings in core --- test/function_building_error_messages.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/function_building_error_messages.jl b/test/function_building_error_messages.jl index 486fde70f..78eca9a90 100644 --- a/test/function_building_error_messages.jl +++ b/test/function_building_error_messages.jl @@ -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)