We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d9403f commit 358d1b7Copy full SHA for 358d1b7
src/Test/UnitTests/modifications.jl
@@ -372,17 +372,17 @@ function delete_variables_in_a_batch(model::MOI.ModelLike,
372
c3: z >= 1.0
373
""")
374
x, y, z = MOI.get(model, MOI.ListOfVariableIndices())
375
- @test MOI.is_valid(model, x) == true
376
- @test MOI.is_valid(model, y) == true
377
- @test MOI.is_valid(model, z) == true
+ @test MOI.is_valid(model, x)
+ @test MOI.is_valid(model, y)
+ @test MOI.is_valid(model, z)
378
if config.solve
379
MOI.optimize!(model)
380
@test MOI.get(model, MOI.ObjectiveValue()) == 6.0
381
end
382
MOI.delete(model, [x, z])
383
- @test MOI.is_valid(model, x) == false
384
385
- @test MOI.is_valid(model, z) == false
+ @test !MOI.is_valid(model, x)
+ @test !MOI.is_valid(model, z)
386
387
388
@test MOI.get(model, MOI.ObjectiveValue()) == 2.0
0 commit comments