Skip to content

Commit c3d040e

Browse files
committed
Fix
1 parent 41d50d7 commit c3d040e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_utilities.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ function test_filter_nondominated_triple()
9595
MOA.SolutionPoint(x, [1, 1, 1][p]),
9696
]
9797
# The permutation can change the ordering of the solutions that are
98-
# returnned, so we can't use `@test min_sol == solutions[1:2]`
99-
min_sol = MOA.filter_nondominated(MOI.MIN_SENSE, solutions)
98+
# returned, so we can't use `@test min_sol == solutions[1:2]`
99+
min_sol = MOA.filter_nondominated(MOI.MIN_SENSE, copy(solutions))
100100
@test solutions[1] in min_sol && solutions[2] in min_sol
101101
@test length(min_sol) == 2
102-
max_sol = MOA.filter_nondominated(MOI.MAX_SENSE, solutions)
102+
max_sol = MOA.filter_nondominated(MOI.MAX_SENSE, copy(solutions))
103103
@test solutions[2] in max_sol && solutions[3] in max_sol
104104
@test length(max_sol) == 2
105105
end

0 commit comments

Comments
 (0)