Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 14, 2024
1 parent 88453fb commit 29ff799
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2490,7 +2490,7 @@ end
function test_do_not_mutate_expression_double_sided_comparison()
model = Model()
@variable(model, x)
@expression(model, a[1:1], x+1)
@expression(model, a[1:1], x + 1)
@constraint(model, -1 <= a[1] <= 1)
@test isequal_canonical(a[1], x + 1)
return
Expand All @@ -2499,7 +2499,7 @@ end
function test_do_not_mutate_expression_single_sided_comparison()
model = Model()
@variable(model, x)
@expression(model, a[1:1], x+1)
@expression(model, a[1:1], x + 1)
@constraint(model, a[1] >= 1)
@test isequal_canonical(a[1], x + 1)
return
Expand All @@ -2508,7 +2508,7 @@ end
function test_do_not_mutate_expression_in_set()
model = Model()
@variable(model, x)
@expression(model, a[1:1], x+1)
@expression(model, a[1:1], x + 1)
@constraint(model, a[1] in MOI.Interval(-1, 1))
@test isequal_canonical(a[1], x + 1)
return
Expand Down

0 comments on commit 29ff799

Please sign in to comment.