Skip to content

Commit

Permalink
improve test that failed because NaN != NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed May 13, 2024
1 parent 96fa3a2 commit ddf1558
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/neighborlists.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ copy(x::NeighborList{T}) where {T} = NeighborList{T}(x.n, copy(x.list))
@test (nb.n, length(nb.list)) == (0, 1)
resize!(nb, 5)
@test (nb.n, length(nb.list), nb.n) == (5, 5, 5)
nb.list = [(i, i, Float64(i)) for i in 1:5]
nb2 = copy(nb)
@test (nb.n, nb.list) == (nb2.n, nb2.list)
end
Expand Down

0 comments on commit ddf1558

Please sign in to comment.