diff --git a/test/show.jl b/test/show.jl index f0854155..6d071246 100644 --- a/test/show.jl +++ b/test/show.jl @@ -760,12 +760,12 @@ end @testset "JuMP.show_backend_summary" begin # test without optimizer str = "Transformation backend information: \n Backend type: TranscriptionBackend\n " * - "Solver name: No optimizer attached.\n Transformation built and up-to-date: false\n" + "Solver: none\n Transformation built and up-to-date: false\n" io_test(show_backend_summary, str, m) # test with optimizer set_optimizer(m, mockoptimizer) str = "Transformation backend information: \n Backend type: TranscriptionBackend\n " * - "Solver name: Mock\n Transformation built and up-to-date: false\n" + "Solver: Mock\n Transformation built and up-to-date: false\n" io_test(show_backend_summary, str, m) # test fallback str = " Backend type: TestBackend\n" @@ -795,14 +795,14 @@ end "`GenericAffExpr{Float64, GeneralVariableRef}`-in-`MathOptInterface.LessThan{Float64}`: " * "2 constraints\nNames registered in the model: c1, c3, par1, pars, x, y, z\n" * "Transformation backend information: \n Backend type: TranscriptionBackend\n " * - "Solver name: Mock\n Transformation built and up-to-date: false\n" + "Solver: Mock\n Transformation built and up-to-date: false\n" str2 = "An InfiniteOpt Model\nMinimization problem with:\n Finite parameters: 0\n " * "Infinite parameters: 3\n Variables: 3\n Derivatives: 0\n Measures: 0\n " * "Objective function type: GenericAffExpr{Float64,GeneralVariableRef}\n " * "`GenericAffExpr{Float64,GeneralVariableRef}`-in-`MathOptInterface.LessThan{Float64}`: " * "2 constraints\nNames registered in the model: c1, c3, par1, pars, x, y, z\n" * "Transformation backend information: \n Backend type: TranscriptionBackend\n " * - "Solver name: Mock\n Transformation built and up-to-date: false\n" + "Solver: Mock\n Transformation built and up-to-date: false\n" show_test(MIME("text/plain"), m, [str, str2], repl=:show) # test maximization set_objective_sense(m, MOI.MAX_SENSE) @@ -812,14 +812,14 @@ end "`GenericAffExpr{Float64, GeneralVariableRef}`-in-`MathOptInterface.LessThan{Float64}`: " * "2 constraints\nNames registered in the model: c1, c3, par1, pars, x, y, z\n" * "Transformation backend information: \n Backend type: TranscriptionBackend\n " * - "Solver name: Mock\n Transformation built and up-to-date: false\n" + "Solver: Mock\n Transformation built and up-to-date: false\n" str2 = "An InfiniteOpt Model\nMaximization problem with:\n Finite parameters: 0\n " * "Infinite parameters: 3\n Variables: 3\n Derivatives: 0\n Measures: 0\n " * "Objective function type: GenericAffExpr{Float64,GeneralVariableRef}\n " * "`GenericAffExpr{Float64,GeneralVariableRef}`-in-`MathOptInterface.LessThan{Float64}`: " * "2 constraints\nNames registered in the model: c1, c3, par1, pars, x, y, z\n" * "Transformation backend information: \n Backend type: TranscriptionBackend\n " * - "Solver name: Mock\n Transformation built and up-to-date: false\n" + "Solver: Mock\n Transformation built and up-to-date: false\n" show_test(MIME("text/plain"), m, [str, str2], repl=:show) # test feasibility set_objective_sense(m, MOI.FEASIBILITY_SENSE) @@ -828,13 +828,13 @@ end "`GenericAffExpr{Float64, GeneralVariableRef}`-in-`MathOptInterface.LessThan{Float64}`: " * "2 constraints\nNames registered in the model: c1, c3, par1, pars, x, y, z\n" * "Transformation backend information: \n Backend type: TranscriptionBackend\n " * - "Solver name: Mock\n Transformation built and up-to-date: false\n" + "Solver: Mock\n Transformation built and up-to-date: false\n" str2 = "An InfiniteOpt Model\nFeasibility problem with:\n Finite parameters: 0\n " * "Infinite parameters: 3\n Variables: 3\n Derivatives: 0\n Measures: 0\n " * "`GenericAffExpr{Float64,GeneralVariableRef}`-in-`MathOptInterface.LessThan{Float64}`: " * "2 constraints\nNames registered in the model: c1, c3, par1, pars, x, y, z\n" * "Transformation backend information: \n Backend type: TranscriptionBackend\n " * - "Solver name: Mock\n Transformation built and up-to-date: false\n" + "Solver: Mock\n Transformation built and up-to-date: false\n" show_test(MIME("text/plain"), m, [str, str2], repl=:show) end end