Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Nov 5, 2024
1 parent 661d8b6 commit ff9b782
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2445,28 +2445,28 @@ end

function test_set_bounds_twice_error()
model = Model()
@test_throws_runtime(
@test_throws_parsetime(
ErrorException(
"In `@variable(model, x >= 0, lower_bound = 1)`: " *
"Cannot specify variable lower_bound twice",
),
@variable(model, x >= 0, lower_bound = 1),
)
@test_throws_runtime(
@test_throws_parsetime(
ErrorException(
"In `@variable(model, x <= 0, upper_bound = 1)`: " *
"Cannot specify variable upper_bound twice",
),
@variable(model, x <= 0, upper_bound = 1),
)
@test_throws_runtime(
@test_throws_parsetime(
ErrorException(
"In `@variable(model, x, Bin, binary = true)`: " *
"'Bin' and 'binary' keyword argument cannot both be specified.",
),
@variable(model, x, Bin, binary = true),
)
@test_throws_runtime(
@test_throws_parsetime(
ErrorException(
"In `@variable(model, x, Int, integer = true)`: " *
"'Int' and 'integer' keyword argument cannot both be specified.",
Expand Down

0 comments on commit ff9b782

Please sign in to comment.