diff --git a/test/MOI_wrapper.jl b/test/MOI_wrapper.jl index d06d2f5..71a4363 100644 --- a/test/MOI_wrapper.jl +++ b/test/MOI_wrapper.jl @@ -30,20 +30,20 @@ function test_runtests() @test model.optimizer.model.model_cache isa MOI.Utilities.UniversalFallback{ECOS.OptimizerCache} MOI.set(model, MOI.Silent(), true) - exclude = String[ + exclude = [ # ZerosBridge does not support ConstraintDual. These are tested below in # test_runtests_ZerosBridge - "test_conic_RotatedSecondOrderCone_INFEASIBLE_2", - "test_conic_linear_VectorOfVariables_2", - "test_linear_integration", - "test_quadratic_constraint_GreaterThan", - "test_quadratic_constraint_LessThan", + r"test_conic_RotatedSecondOrderCone_INFEASIBLE_2$", + r"test_conic_linear_VectorOfVariables_2$", + r"test_linear_integration$", + r"test_quadratic_constraint_GreaterThan$", + r"test_quadratic_constraint_LessThan$", ] if Sys.WORD_SIZE == 32 # These tests fail on x86 Linux, returning ITERATION_LIMIT instead of # proving {primal,dual}_INFEASIBLE. - push!(exclude, "test_conic_linear_INFEASIBLE") - push!(exclude, "test_solve_TerminationStatus_DUAL_INFEASIBLE") + push!(exclude, r"test_conic_linear_INFEASIBLE$") + push!(exclude, r"test_solve_TerminationStatus_DUAL_INFEASIBLE$") end MOI.Test.runtests( model, @@ -82,13 +82,13 @@ function test_runtests_ZerosBridge() MOI.ObjectiveBound, ], ), - include = String[ + include = [ # ZerosBridge does not support ConstraintDual - "test_conic_RotatedSecondOrderCone_INFEASIBLE_2", - "test_conic_linear_VectorOfVariables_2", - "test_linear_integration", - "test_quadratic_constraint_GreaterThan", - "test_quadratic_constraint_LessThan", + r"test_conic_RotatedSecondOrderCone_INFEASIBLE_2", + r"test_conic_linear_VectorOfVariables_2", + r"test_linear_integration", + r"test_quadratic_constraint_GreaterThan", + r"test_quadratic_constraint_LessThan", ], ) return