From e27965d52a8dfd11ff874379fa8ad1ca2ca1e757 Mon Sep 17 00:00:00 2001 From: lxvm Date: Thu, 21 Sep 2023 01:21:53 -0400 Subject: [PATCH] apply format --- src/problems/basic_problems.jl | 14 +++++++++++--- test/function_building_error_messages.jl | 4 +++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/problems/basic_problems.jl b/src/problems/basic_problems.jl index 6e6b6269f..50621ccb9 100644 --- a/src/problems/basic_problems.jl +++ b/src/problems/basic_problems.jl @@ -359,7 +359,8 @@ struct IntegralProblem{isinplace, P, F, T, K} <: AbstractIntegralProblem{isinpla domain::T p::P kwargs::K - @add_kwonly function IntegralProblem{iip}(f::AbstractIntegralFunction{iip}, domain, p = NullParameters(); + @add_kwonly function IntegralProblem{iip}(f::AbstractIntegralFunction{iip}, domain, + p = NullParameters(); kwargs...) where {iip} warn_paramtype(p) new{iip, typeof(p), typeof(f), typeof(domain), typeof(kwargs)}(f, @@ -369,11 +370,18 @@ end TruncatedStacktraces.@truncate_stacktrace IntegralProblem 1 4 -function IntegralProblem(f::AbstractIntegralFunction, domain, p = NullParameters(); kwargs...) +function IntegralProblem(f::AbstractIntegralFunction, + domain, + p = NullParameters(); + kwargs...) IntegralProblem{isinplace(f)}(f, domain, p; kwargs...) end -function IntegralProblem(f::AbstractIntegralFunction, lb::B, ub::B, p = NullParameters(); kwargs...) where {B} +function IntegralProblem(f::AbstractIntegralFunction, + lb::B, + ub::B, + p = NullParameters(); + kwargs...) where {B} IntegralProblem(f, (lb, ub), p; kwargs...) end function IntegralProblem(f, args...; kwargs...) diff --git a/test/function_building_error_messages.jl b/test/function_building_error_messages.jl index cd47a6a33..008758ddb 100644 --- a/test/function_building_error_messages.jl +++ b/test/function_building_error_messages.jl @@ -629,5 +629,7 @@ BatchIntegralFunction(boop, Float64[]) BatchIntegralFunction(boop, Float64[], max_batch = 20) BatchIntegralFunction(biip, Float64[], Float64[]) # the 2nd argument should be an ElasticArray @test_throws SciMLBase.TooFewArgumentsError BatchIntegralFunction(bi1, Float64[]) -@test_throws SciMLBase.TooManyArgumentsError BatchIntegralFunction(bitoo, Float64[], Float64[]) +@test_throws SciMLBase.TooManyArgumentsError BatchIntegralFunction(bitoo, + Float64[], + Float64[]) @test_throws SciMLBase.TooManyArgumentsError BatchIntegralFunction(bitoo, Float64[])