Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Dec 5, 2022
1 parent 9c9df7e commit 213fb39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/neighborlists.jl
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ end
# Non-periodic systems
x = rand(SVector{3,Float64}, 10^3)
system = InPlaceNeighborList(x=x, cutoff=0.1)
@test diag(system.box.unit_cell.matrix) == limits(x).limits .+ 0.1
@test diag(system.box.unit_cell.matrix) == nextfloat.(limits(x).limits .+ 0.1)
x = rand(SVector{3,Float64}, 10^3)
update!(system, x)
@test system.box.cutoff == 0.1
Expand All @@ -304,14 +304,14 @@ end
x = rand(SVector{3,Float64}, 10^3)
y = rand(SVector{3,Float64}, 10^3)
system = InPlaceNeighborList(x=x, y=y, cutoff=0.1)
@test diag(system.box.unit_cell.matrix) == limits(x, y).limits .+ 0.1
@test diag(system.box.unit_cell.matrix) nextfloat.(limits(x, y).limits .+ 0.1)
x = rand(SVector{3,Float64}, 10^3)
y = rand(SVector{3,Float64}, 10^3)
update!(system, x, y)
@test system.box.cutoff == 0.1
update!(system, x, y; cutoff=0.05)
@test system.box.cutoff == 0.05
@test diag(system.box.unit_cell.matrix) == limits(x, y).limits .+ 0.05
@test diag(system.box.unit_cell.matrix) nextfloat.(limits(x, y).limits .+ 0.05)

# Orthorhombic systems
x = rand(SVector{3,Float64}, 10^3)
Expand Down

2 comments on commit 213fb39

@lmiq
Copy link
Member Author

@lmiq lmiq commented on 213fb39 Dec 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/73493

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.8.10 -m "<description of version>" 213fb39c3a7c8b0ccc5802cf9159f67f824b3fd5
git push origin v0.8.10

Please sign in to comment.