Skip to content

Commit

Permalink
Merge pull request #716 from JuliaOpt/bl/constraints_is
Browse files Browse the repository at this point in the history
constraints is -> constraint is
  • Loading branch information
blegat authored Apr 25, 2019
2 parents 589cd22 + 9574b1f commit 208a9aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/constraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct UnsupportedConstraint{F<:AbstractFunction, S<:AbstractSet} <: Unsupported
end
UnsupportedConstraint{F, S}() where {F, S} = UnsupportedConstraint{F, S}("")

element_name(::UnsupportedConstraint{F, S}) where {F, S} = "`$F`-in-`$S` constraints"
element_name(::UnsupportedConstraint{F, S}) where {F, S} = "`$F`-in-`$S` constraint"

"""
struct AddConstraintNotAllowed{F<:AbstractFunction, S<:AbstractSet} <: NotAllowedError
Expand Down
2 changes: 1 addition & 1 deletion test/errors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
MOI.add_constraint(model, func, MOI.EqualTo(0))
catch err
@test sprint(showerror, err) == "$MOI.UnsupportedConstraint{$MOI.SingleVariable,$MOI.EqualTo{$Int}}:" *
" `$MOI.SingleVariable`-in-`$MOI.EqualTo{$Int}` constraints is" *
" `$MOI.SingleVariable`-in-`$MOI.EqualTo{$Int}` constraint is" *
" not supported by the model."
end
@test_throws MOI.UnsupportedConstraint begin
Expand Down

0 comments on commit 208a9aa

Please sign in to comment.