Skip to content

Commit 10e6c5b

Browse files
committed
Improve comments
1 parent 15fcadc commit 10e6c5b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/grid_nhs.jl

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@testset verbose=true "GridNeighborhoodSearch" begin
22
@testset "Cells at Coordinate Limits" begin
3-
# Test the threshold for very large and very small coordinates.
3+
# Test the threshold for very large and very small coordinates
44
coords1 = [Inf, -Inf]
55
coords2 = [NaN, 0]
66
coords3 = [typemax(Int) + 1.0, -typemax(Int) - 1.0]
@@ -15,8 +15,8 @@
1515

1616
@testset "Rectangular Point Cloud 2D" begin
1717
#### Setup
18-
# Rectangular filled with equidistant spaced particles
19-
# from (x, y) = (-0.25, -0.25) to (x, y) = (0.35, 0.35)
18+
# Rectangle of equidistantly spaced particles
19+
# from (x, y) = (-0.25, -0.25) to (x, y) = (0.35, 0.35).
2020
range = -0.25:0.1:0.35
2121
coordinates1 = hcat(collect.(Iterators.product(range, range))...)
2222
nparticles = size(coordinates1, 2)
@@ -78,17 +78,16 @@
7878
@test neighbors3 == [17, 18, 19, 24, 25, 26, 31, 32, 33]
7979

8080
@test neighbors4 == [
81-
9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21, 23, 24, 25,
82-
26, 27, 28, 30, 31, 32, 33, 34, 35, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47,
83-
48, 49]
81+
9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 30, 31,
82+
32, 33, 34, 35, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49]
8483

8584
@test neighbors5 == [36, 37, 38, 43, 44, 45]
8685
end
8786

8887
@testset "Rectangular Point Cloud 3D" begin
8988
#### Setup
90-
# Rectangular filled with equidistant spaced particles
91-
# from (x, y, z) = (-0.25, -0.25, -0.25) to (x, y) = (0.35, 0.35, 0.35)
89+
# Rectangle of equidistantly spaced particles
90+
# from (x, y, z) = (-0.25, -0.25, -0.25) to (x, y) = (0.35, 0.35, 0.35).
9291
range = -0.25:0.1:0.35
9392
coordinates1 = hcat(collect.(Iterators.product(range, range, range))...)
9493
nparticles = size(coordinates1, 2)

0 commit comments

Comments
 (0)