Skip to content

Commit

Permalink
check identity instead of equality
Browse files Browse the repository at this point in the history
Previous PR just checked equality of container, but original issue was about referencing some memory address in each population trace
  • Loading branch information
jonathanfischer97 authored Apr 5, 2024
1 parent d4c732a commit 1ce2a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OptimizationEvolutionary/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ Random.seed!(1234)
haskey(sol.original.trace[end].metadata, "x")

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

0 comments on commit 1ce2a62

Please sign in to comment.