Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit c9b5e85

Browse files
committed
Refactor tests
1 parent 4cf7e6b commit c9b5e85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/processes.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
@testset "Poisson" begin
4141
# inhomogeneous with piecewise constant intensity
4242
for g in [grid, mesh]
43-
λvec = λ.(centroid.(g))
44-
p = PoissonProcess(λvec)
43+
p = PoissonProcess(λ.(centroid.(g)))
4544
pp = rand(p, g)
4645
@test all((g), pp)
4746
end
@@ -50,6 +49,7 @@
5049
for g in geoms
5150
@test isnothing(rand(PoissonProcess(0.0), seg))
5251
end
52+
5353
pp = PointSet(rand(Point2, 10))
5454
@test isnothing(rand(PoissonProcess(100.0), pp))
5555
end

0 commit comments

Comments
 (0)