Skip to content

Commit 69e18f9

Browse files
committed
Update
1 parent 0aa6a21 commit 69e18f9

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

test/test_utilities.jl

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -108,28 +108,20 @@ end
108108

109109
function test_filter_epsilon()
110110
x = Dict{MOI.VariableIndex,Float64}()
111-
solutions = [
112-
MOA.SolutionPoint(x, [1, 1 + 1e-6]),
113-
MOA.SolutionPoint(x, [2, 1]),
114-
]
111+
solutions =
112+
[MOA.SolutionPoint(x, [1, 1 + 1e-6]), MOA.SolutionPoint(x, [2, 1])]
115113
new_solutions = MOA.filter_nondominated(MOI.MAX_SENSE, copy(solutions))
116114
@test new_solutions == solutions[2:2]
117-
solutions = [
118-
MOA.SolutionPoint(x, [1, 1 + 9e-5]),
119-
MOA.SolutionPoint(x, [2, 1]),
120-
]
115+
solutions =
116+
[MOA.SolutionPoint(x, [1, 1 + 9e-5]), MOA.SolutionPoint(x, [2, 1])]
121117
new_solutions = MOA.filter_nondominated(MOI.MAX_SENSE, copy(solutions))
122118
@test new_solutions == solutions
123-
solutions = [
124-
MOA.SolutionPoint(x, [-1, -1 - 1e-6]),
125-
MOA.SolutionPoint(x, [-2, -1]),
126-
]
119+
solutions =
120+
[MOA.SolutionPoint(x, [-1, -1 - 1e-6]), MOA.SolutionPoint(x, [-2, -1])]
127121
new_solutions = MOA.filter_nondominated(MOI.MIN_SENSE, copy(solutions))
128122
@test new_solutions == solutions[2:2]
129-
solutions = [
130-
MOA.SolutionPoint(x, [-1, -1 - 9e-5]),
131-
MOA.SolutionPoint(x, [-2, -1]),
132-
]
123+
solutions =
124+
[MOA.SolutionPoint(x, [-1, -1 - 9e-5]), MOA.SolutionPoint(x, [-2, -1])]
133125
new_solutions = MOA.filter_nondominated(MOI.MIN_SENSE, copy(solutions))
134126
@test new_solutions == reverse(solutions)
135127
return

0 commit comments

Comments
 (0)