From f9474dfca7f58c55ff1102cbf8c8c05eea282e1e Mon Sep 17 00:00:00 2001 From: Morten Piibeleht Date: Thu, 8 May 2025 14:51:12 +1200 Subject: [PATCH 1/4] [docs] Filter varying width Time column in doctest --- docs/src/submodules/Bridges/implementation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/submodules/Bridges/implementation.md b/docs/src/submodules/Bridges/implementation.md index f0ef9d7141..ae821f0087 100644 --- a/docs/src/submodules/Bridges/implementation.md +++ b/docs/src/submodules/Bridges/implementation.md @@ -66,7 +66,7 @@ arguments: the type of the bridge, the input model as a string, and the output model as a string. Here is an example: -```jldoctest; filter=r"[0-9.]+s" +```jldoctest; filter=[r"[0-9.]+s", r"\s+Time"] julia> MOI.Bridges.runtests( MOI.Bridges.Constraint.GreaterToLessBridge, """ @@ -100,7 +100,7 @@ There are a number of other useful keyword arguments. Here is an example: -```jldoctest; filter=r"[0-9.]+s" +```jldoctest; filter=[r"[0-9.]+s", r"\s+Time"] julia> MOI.Bridges.runtests( MOI.Bridges.Constraint.GreaterToLessBridge, """ From e393ba6f206d6136aaa7477ebcd4a74fd6f4968a Mon Sep 17 00:00:00 2001 From: Morten Piibeleht Date: Thu, 8 May 2025 14:54:20 +1200 Subject: [PATCH 2/4] Update Bridges.jl --- src/Bridges/Bridges.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bridges/Bridges.jl b/src/Bridges/Bridges.jl index b3b963a9f6..b43525f56d 100644 --- a/src/Bridges/Bridges.jl +++ b/src/Bridges/Bridges.jl @@ -273,7 +273,7 @@ and [`MOI.ConstraintPrimalStart`](@ref) to throw [`MOI.GetAttributeNotAllowed`]( ## Example -```jldoctest; filter=r"[0-9.]+s" +```jldoctest; filter=[r"[0-9.]+s", r"\s+Time"] julia> MOI.Bridges.runtests( MOI.Bridges.Constraint.ZeroOneBridge, model -> MOI.add_constrained_variable(model, MOI.ZeroOne()), @@ -423,7 +423,7 @@ Run a series of tests that check the correctness of `Bridge`. ## Example -```jldoctest; filter=r"[0-9.]+s" +```jldoctest; filter=[r"[0-9.]+s", r"\s+Time"] julia> MOI.Bridges.runtests( MOI.Bridges.Constraint.ZeroOneBridge, \"\"\" From a612918c93ebc532e9ad111aab11d78c5e8231cf Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Thu, 8 May 2025 14:58:25 +1200 Subject: [PATCH 3/4] Apply suggestions from code review --- docs/src/submodules/Bridges/implementation.md | 4 ++-- src/Bridges/Bridges.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/submodules/Bridges/implementation.md b/docs/src/submodules/Bridges/implementation.md index ae821f0087..a1d97468a2 100644 --- a/docs/src/submodules/Bridges/implementation.md +++ b/docs/src/submodules/Bridges/implementation.md @@ -66,7 +66,7 @@ arguments: the type of the bridge, the input model as a string, and the output model as a string. Here is an example: -```jldoctest; filter=[r"[0-9.]+s", r"\s+Time"] +```jldoctest; filter=[r"[0-9.]+s", r"\\s+Time"] julia> MOI.Bridges.runtests( MOI.Bridges.Constraint.GreaterToLessBridge, """ @@ -100,7 +100,7 @@ There are a number of other useful keyword arguments. Here is an example: -```jldoctest; filter=[r"[0-9.]+s", r"\s+Time"] +```jldoctest; filter=[r"[0-9.]+s", r"\\s+Time"] julia> MOI.Bridges.runtests( MOI.Bridges.Constraint.GreaterToLessBridge, """ diff --git a/src/Bridges/Bridges.jl b/src/Bridges/Bridges.jl index b43525f56d..797428d02f 100644 --- a/src/Bridges/Bridges.jl +++ b/src/Bridges/Bridges.jl @@ -273,7 +273,7 @@ and [`MOI.ConstraintPrimalStart`](@ref) to throw [`MOI.GetAttributeNotAllowed`]( ## Example -```jldoctest; filter=[r"[0-9.]+s", r"\s+Time"] +```jldoctest; filter=[r"[0-9.]+s", r"\\s+Time"] julia> MOI.Bridges.runtests( MOI.Bridges.Constraint.ZeroOneBridge, model -> MOI.add_constrained_variable(model, MOI.ZeroOne()), @@ -423,7 +423,7 @@ Run a series of tests that check the correctness of `Bridge`. ## Example -```jldoctest; filter=[r"[0-9.]+s", r"\s+Time"] +```jldoctest; filter=[r"[0-9.]+s", r"\\s+Time"] julia> MOI.Bridges.runtests( MOI.Bridges.Constraint.ZeroOneBridge, \"\"\" From e95e26a2d1e6089835a178c1f0e107cc92e88ca7 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Thu, 8 May 2025 15:38:56 +1200 Subject: [PATCH 4/4] Apply suggestions from code review --- docs/src/submodules/Bridges/implementation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/submodules/Bridges/implementation.md b/docs/src/submodules/Bridges/implementation.md index a1d97468a2..ae821f0087 100644 --- a/docs/src/submodules/Bridges/implementation.md +++ b/docs/src/submodules/Bridges/implementation.md @@ -66,7 +66,7 @@ arguments: the type of the bridge, the input model as a string, and the output model as a string. Here is an example: -```jldoctest; filter=[r"[0-9.]+s", r"\\s+Time"] +```jldoctest; filter=[r"[0-9.]+s", r"\s+Time"] julia> MOI.Bridges.runtests( MOI.Bridges.Constraint.GreaterToLessBridge, """ @@ -100,7 +100,7 @@ There are a number of other useful keyword arguments. Here is an example: -```jldoctest; filter=[r"[0-9.]+s", r"\\s+Time"] +```jldoctest; filter=[r"[0-9.]+s", r"\s+Time"] julia> MOI.Bridges.runtests( MOI.Bridges.Constraint.GreaterToLessBridge, """