We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec09399 commit 2d6590bCopy full SHA for 2d6590b
1 file changed
test/test_model.jl
@@ -260,6 +260,14 @@ function _test_printing()
260
]
261
@test occursin(line, contents)
262
end
263
+ @test MOI.supports(model, MOI.Silent())
264
+ @test MOI.get(model, MOI.Silent()) == false
265
+ MOI.set(model, MOI.Silent(), true)
266
+ open(joinpath(dir, "log2.txt"), "w") do io
267
+ redirect_stdout(() -> MOI.optimize!(model), io)
268
+ return
269
+ end
270
+ @test read(joinpath(dir, "log2.txt"), String) == ""
271
return
272
273
0 commit comments