From 3fbcdfbcdfa2f06cf84824d1602eda4ecd23a7bd Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Tue, 6 Oct 2026 09:45:29 +1300 Subject: [PATCH] [docs] fix doctest for upcoming Julia nightly The printing of the Set was not stable between Julia versions, so the doctests could break unexpectedly. --- src/sets.jl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/sets.jl b/src/sets.jl index a5361684c7..3c5681ee8e 100644 --- a/src/sets.jl +++ b/src/sets.jl @@ -2341,11 +2341,7 @@ julia> x = [MOI.add_constrained_variable(model, MOI.Integer())[1] for _ in 1:3] MOI.VariableIndex(3) MOI.VariableIndex(4) -julia> set = Set([3, 4, 5]) -Set{Int64} with 3 elements: - 5 - 4 - 3 +julia> set = Set([3, 4, 5]); julia> MOI.add_constraint(model, MOI.VectorOfVariables([n; x]), MOI.CountBelongs(4, set)) MathOptInterface.ConstraintIndex{MathOptInterface.VectorOfVariables, MathOptInterface.CountBelongs}(1)