Skip to content

Commit 3f8b582

Browse files
Merge pull request #732 from jonathanfischer97/fix_pop_save
check identity instead of equality
2 parents 20e46a6 + 80f2155 commit 3f8b582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/OptimizationEvolutionary/test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ Random.seed!(1234)
5858
haskey(sol.original.trace[end].metadata, "x")
5959

6060
# Test the the values of x are saved, not the reference
61-
@test sol.original.trace[end].metadata["x"] !== sol.original.trace[end-1].metadata["x"]
61+
@test !(sol.original.trace[end].metadata["x"] === sol.original.trace[end-1].metadata["x"])
6262
end

0 commit comments

Comments
 (0)