@@ -20,45 +20,6 @@ function runtests()
2020 return
2121end
2222
23- function test_runtests ()
24- # Some tests are excluded because UniversalFallback accepts absolutely
25- # everything.
26- MOI. Test. runtests (
27- MOI. Utilities. MockOptimizer (
28- MOI. Utilities. UniversalFallback (MOI. Utilities. Model {Float64} ()),
29- ),
30- MOI. Test. Config (),
31- exclude = [
32- r" ^test_model_ScalarFunctionConstantNotZero$" ,
33- " test_model_copy_to_UnsupportedAttribute" ,
34- " test_model_copy_to_UnsupportedConstraint" ,
35- " test_model_supports_constraint_ScalarAffineFunction_EqualTo" ,
36- " test_model_supports_constraint_VariableIndex_EqualTo" ,
37- " test_model_supports_constraint_VectorOfVariables_Nonnegatives" ,
38- ],
39- warn_unsupported = true ,
40- verbose = true ,
41- )
42- # Run the previously excluded tests, this time without UniversalFallback.
43- MOI. Test. runtests (
44- MOI. Utilities. MockOptimizer (
45- MOI. Utilities. Model {Float64} (),
46- scalar_function_constant_non_zero = true ,
47- ),
48- MOI. Test. Config ();
49- include = [
50- r" ^test_model_ScalarFunctionConstantNotZero$" ,
51- " test_model_copy_to_UnsupportedAttribute" ,
52- " test_model_copy_to_UnsupportedConstraint" ,
53- " test_model_supports_constraint_ScalarAffineFunction_EqualTo" ,
54- " test_model_supports_constraint_VariableIndex_EqualTo" ,
55- " test_model_supports_constraint_VectorOfVariables_Nonnegatives" ,
56- ],
57- verbose = true ,
58- )
59- return
60- end
61-
6223function test_issue_1757 ()
6324 MOI. Test. test_model_ScalarFunctionConstantNotZero (
6425 MOI. Utilities. MockOptimizer (
@@ -84,28 +45,6 @@ function test_exclude_tests_after()
8445 return
8546end
8647
87- # Non-Float64 tests
88-
89- function test_bigfloat_tests ()
90- MOI. Test. runtests (
91- MOI. Utilities. MockOptimizer (
92- MOI. Utilities. UniversalFallback (MOI. Utilities. Model {BigFloat} ()),
93- BigFloat,
94- ),
95- MOI. Test. Config (BigFloat),
96- exclude = [
97- # ========================= Expected failures ======================
98- # UniversalFallback supports these tests.
99- " test_model_copy_to_UnsupportedAttribute" ,
100- " test_model_copy_to_UnsupportedConstraint" ,
101- " test_model_supports_constraint_ScalarAffineFunction_EqualTo" ,
102- " test_model_supports_constraint_VariableIndex_EqualTo" ,
103- " test_model_supports_constraint_VectorOfVariables_Nonnegatives" ,
104- ],
105- )
106- return
107- end
108-
10948# Special test for issue #2010
11049
11150struct _UnsupportedModel <: MOI.ModelLike end
0 commit comments