Skip to content

Commit 1ce2a62

Browse files
check identity instead of equality
Previous PR just checked equality of container, but original issue was about referencing some memory address in each population trace
1 parent d4c732a commit 1ce2a62

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)