Skip to content

Commit 0f831a7

Browse files
authored
Update results.jl
1 parent 964d1af commit 0f831a7

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

test/Utilities/results.jl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,19 @@ import MathOptInterface as MOI
1313
function 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
2222
end
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
4752
end
4853

49-
end
54+
end # module TestResults
5055

5156
TestResults.runtests()

0 commit comments

Comments
 (0)