We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64e3762 commit 34e25b2Copy full SHA for 34e25b2
1 file changed
test/General/errors.jl
@@ -410,6 +410,18 @@ function test_logs_precompile()
410
return
411
end
412
413
+function test_GetAttributeNotAllowed_showerror()
414
+ c_set = sprint(showerror, MOI.GetAttributeNotAllowed(MOI.ConstraintSet()))
415
+ @test occursin("## Fixing this error", c_set)
416
+ @test occursin("MOI.Utilities.CachingOptimizer", c_set)
417
+ @test !occursin("Check the solver log for details.", c_set)
418
+ c_dual = sprint(showerror, MOI.GetAttributeNotAllowed(MOI.ConstraintDual()))
419
420
+ @test !occursin("MOI.Utilities.CachingOptimizer", c_set)
421
+ @test occursin("Check the solver log for details.", c_set)
422
+ return
423
+end
424
+
425
end # module
426
427
TestErrors.runtests()
0 commit comments