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
13
13
function runtests ()
14
14
for name in names (@__MODULE__ ; all = true )
15
15
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)()
18
18
end
19
19
end
20
20
end
21
21
return
22
22
end
23
23
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)
25
29
model = MOI. Utilities. MockOptimizer (
26
30
MOI. Utilities. UniversalFallback (MOI. Utilities. Model {T} ()),
27
31
T,
@@ -44,8 +48,9 @@ function test_hyperrectangle(T)
44
48
MOI. DualObjectiveValue (),
45
49
T,
46
50
)
51
+ return
47
52
end
48
53
49
- end
54
+ end # module TestResults
50
55
51
56
TestResults. runtests ()
You can’t perform that action at this time.
0 commit comments