File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,19 @@ import MathOptInterface as MOI
1313function runtests ()
1414 for name in names (@__MODULE__ ; all = true )
1515 if startswith (" $(name) " , " test_" )
16- @testset " $(name) $T " for T in [Int, Float64]
17- getfield (@__MODULE__ , name)(T )
16+ @testset " $(name) " begin
17+ getfield (@__MODULE__ , name)()
1818 end
1919 end
2020 end
2121 return
2222end
2323
24- function test_hyperrectangle (T)
24+ test_hyperrectangle_Int = _test_hyperrectangle (Int)
25+
26+ test_hyperrectangle_Float64 = _test_hyperrectangle (Float64)
27+
28+ function _test_hyperrectangle (T)
2529 model = MOI. Utilities. MockOptimizer (
2630 MOI. Utilities. UniversalFallback (MOI. Utilities. Model {T} ()),
2731 T,
@@ -44,8 +48,9 @@ function test_hyperrectangle(T)
4448 MOI. DualObjectiveValue (),
4549 T,
4650 )
51+ return
4752end
4853
49- end
54+ end # module TestResults
5055
5156TestResults. runtests ()
You can’t perform that action at this time.
0 commit comments