Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed May 2, 2024
1 parent 04ff92a commit 74f265b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_nlp_expr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,8 @@ function test_error_legacy_expression_constructor()
@test_throws err @objective(model, Min, arg)
@test_throws err @constraint(model, arg <= 0)
@test_throws err @constraint(model, arg in MOI.LessThan(0.0))
@test_throws err moi_function(arg * x)
@test_throws err moi_function(x * arg)
return
end

Expand All @@ -1119,6 +1121,8 @@ function test_error_legacy_parameter_constructor()
@test_throws err @objective(model, Min, p)
@test_throws err @constraint(model, p <= 0)
@test_throws err @constraint(model, p in MOI.LessThan(0.0))
@test_throws err moi_function(p * x)
@test_throws err moi_function(x * p)
return
end

Expand Down

0 comments on commit 74f265b

Please sign in to comment.